There was a problem loading the comments.

Why am I not able to send mail via my PHP script or application?

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Why use SMTP instead of PHPMail()?

By default, PHP applications will send emails using a protocol called ‘PHPMail()’, which has a number of disadvantages and in many cases leads to the email hitting the SPAM folder of the recipient. PHP mail is disabled on our servers.

When an email is sent from applications it will use an email address similar to…

youruser@your.servername.com

In our case, this would be…

youruser@server.cloudns.io

Yet, your WordPress configuration will be set to send emails from an alternative ‘prettier’ email address, such as ‘you@yourdomain.com’.

The problem here is that many recipient mailboxes will recognise this as ‘spoofing’, and will indeed flag the message as SPAM.

Please note that PHPMail() is disabled by default, and SMTP should be used to relay all messages from your PHP script or application. 


Share via
Did you find this article useful?  

Related Articles

© Brixly