New Feature Announcement: Master Your Email Delivery with the Mail Delivery Center

Enabling PHPMail() on Your Account

PHPMail() is a function used by PHP to send emails directly from a server. However, due to its frequent misuse by malicious users to send spam and other unsolicited emails, we have decided to disable this function by default. This measure is taken to protect the reputation of our IP addresses and network and to ensure that your domains stay off RBLs and blacklists.

Why We 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. However, your PHP application will likely be set to send emails from an alternative email address. Many recipient mailboxes recognise this discrepancy as 'spoofing', which may flag the message as SPAM.

Using SMTP Instead of PHPMail()

We recommend our customers to use an email library or plugin to send emails via SMTP. There are additional benefits to relaying your messages via SMTP, including the fact we relay all of your outbound mail through the MailChannels delivery service. For more information on how MailChannels works, you can refer to our article on MailChannels.

Enabling PHPMail() on Your Account

Important: Sending messages via PHPMail() have an incredibly low chance of delivery, and therefore enabling PHPMail() over utilizing SMTP is strongly discouraged.

While we strongly discourage it, if you require PHP mail to be enabled on your domain, you can do so via the PHP Selector in cPanel. Here are the steps:

  1. Login to your cPanel.
  2. Click 'Select PHP Version'.
  3. Select 'Options'.
  4. Change 'sendmail_path' to '/usr/sbin/sendmail -t -i'.

Please note that enabling PHPMail() may increase the likelihood of your emails being marked as spam by recipient mailboxes. Therefore, it's recommended to use SMTP for sending emails whenever possible.

  • 292 Users Found This Useful
Was this answer helpful?

Related Articles

 Getting Started

Overview MailGee supports a variety of email clients, both on desktop computers and on...

 Android

Open the Email app. If this is your first email account, tap Add Account; if not, tap More and...

 Apple macOS / iOS

Method 1 via Mobileconfig¶ Email, contacts and calendars can be configured automatically on...

 eM Client

Launch eM Client. If this is the first time you launched eM Client, it asks you to set up your...

 KDE Kontact

Launch Kontact. If this is the first time you launched Kontact or KMail, it asks you to set up...

Powered by WHMCompleteSolution