We have decided to disable the mail function because the mail() function was often used by malicious users on our network to send spam and other unsolicited e-mails. 

This is to protect the reputation of our IP addresses / network, and to ensure that your domains stay off RBL’s and blacklists. 

We recommend our customers to use an e-mail library or plugin in order to send e-mails via SMTP. There are additional benefits to relaying your messages via SMTP also, including the fact we relay all of your outbound mail through the MailChannels delivery service.

Why do you recommend against using PHPMail()?

When an email is sent from a PHP application using PHP mail, such as a contact form, the message is relayed via the server hostname similar to…


In our case, this would be…


Yet, your PHP application 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.

How do I enable PHPMail() on my account?

First of all, this is strongly discouraged.

However, if you do require PHP mail to be enabled on your domain, you can enable this via the PHP Selector in cPanel…

1.) Login to your cPanel

2.) Click ‘Select PHP Version’ 

3.) Select ‘Options’ 

4.) Change ‘sendmail_path’ to ‘/usr/sbin/sendmail -t -i’