• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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