How do I enable PHPMail() on my account?

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.

 

For more information on how MailChannels works click here

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…

youruser@your.servername.com

In our case, this would be…

youruser@server.cloudns.io

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'

Was dit antwoord nuttig?

Gerelateerde artikelen

How do I configure my 'Email Routing' in cPanel?

Mail Exchanger Options Explained: Unless you have a particular setup that needs these...

How to create email address

You can create as many email accounts as you like. Creating an email account in cPanel is a very...

How to configure Email Routing and MX records for Google Mail

If you're planning to use your domain with Google Mail, you'll need to make a few configuration...

How do I configure my 'Email Routing' in cPanel?

Mail Exchanger Options Explained: Unless you have a particular setup that needs these...

What are 'mixed content' errors and how do I resolve them?

Powered by WHMCompleteSolution