• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Plesk SMTP Info Need for Website Script

dubster

New Pleskian
I am using a PHP script but when I try the contact us form or register button the emails are not being sent, I think I might have set up the configuration wrong, in the script config file it asks for this info below, what info would I use to fill it out?

MAIL_DRIVER=smtp
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=null

Thanks
 
hello @dubster ,

please check that "Allow users and scripts to use Sendmail" setting is enabled in Tool & Settings > Mail Server Settings

another way, is to create some 'technical' mailbox at appropriate domain in Plesk and use it's credentials for sending such emails.
 
hello @dubster ,

please check that "Allow users and scripts to use Sendmail" setting is enabled in Tool & Settings > Mail Server Settings

another way, is to create some 'technical' mailbox at appropriate domain in Plesk and use it's credentials for sending such emails.
Thanks for the reply, does this look correct?

MAIL_DRIVER=smtp
MAIL_HOST=smtp.domain.com
MAIL_PORT=25
MAIL_USERNAME=email address
MAIL_PASSWORD=email address password
MAIL_ENCRYPTION=null
 
everything looks correct for me except 'MAIL_ENCRYPTION'
not sure, but most probably it should be set to 'tls'
 
Back
Top