Unable to send an email via PHP or ASP.NET script in Plesk serverUnable to send an email via PHP or ASP.NET script in Plesk server

SMTP server requires authentication in order to send mail to non-local addresses.

Login to Plesk Add localhost addresses to the Whitelist at Tools & Settings > Mail Server Settings > White List > Add Address:

127.0.0.1/32
::1/128

Make sure that the following settings in MailEnable Management are enabled:

Connect to a Plesk server via RDP.

Launch MailEnable Management console at Windows Start > All Programs > Mail Enable. In MailEnable Management console, expand Servers > localhost > Services and Connectors > right-click on SMTP and open its Properties.

In SMTP Properties window, switch to the Security tab and disable the options Disable all catchalls and Authenticated senders must use address from their postoffice (or Authenticated senders must use valid sender address). Click the Apply button.

Switch to the Relay tab > Privileged IPs… and select Denied relay rights.

To allow sending emails through the server from a web server or web page, add the IP addresses of those users who are able to send email out through the server:

  1. Click Add, enter the IP address and click Close.
  2. Click OK to apply the changes.

To apply changes restart the MailEnable SMTP Connector service:

6.1. In MailEnable Management console, go to Servers > localhost > System > Services Status.

6.2. Select MailEnable SMTP Connector.

6.3. Click Restart in the right panel.