PHP mail on our server is not allowed, please use SMTP mail instead Print

  • php mail, send mail
  • 0

The message "PHP mail on our server is not allowed, please use SMTP mail instead" indicates that your server doesn't permit sending emails directly using the built-in mail() function. Instead, it requires you to use an SMTP (Simple Mail Transfer Protocol) server to send emails.


Here's a breakdown of why this is necessary and how to address it:


Why you need to use SMTP:

1. Server Restrictions:
Your web hosting provider or server administrator may have disabled direct email sending via the mail() function for security reasons or to prevent spam abuse.

2. SMTP for Reliability:
SMTP is the standard protocol for sending emails. Using an SMTP server increases email deliverability and helps avoid spam filters or server blocks.


Important Notice:

If your account sends out emails via a webform on your site using a CAPTCHA plugin, please ensure it is correctly configured to use SMTP. Failure to do so could result in unauthorized or excessive email activity, and you may be held liable for any related charges.  How TO HERE


How to use SMTP with PHP:

1. Choose an SMTP Server:

  • Your Web Host:
    Most web hosting providers offer SMTP servers you can configure to send emails.

  • Third-Party SMTP Services:
    Alternatively, you can use reliable third-party services like SendGrid, Mailgun, or Amazon SES, which are designed for scalable and secure email delivery.


2. Configure SMTP Settings:

  • SMTP Host: The address of the SMTP server.

  • SMTP Port: The port number used by the SMTP server (commonly 587 or 465).

  • SMTP Username: The username required for authentication.

  • SMTP Password: The password for authentication.

  • Encryption: Check whether the server requires encryption, such as TLS or SSL.

 


Was this answer helpful?

« Back