• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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