X
X
Worldwide (English) TRY 0

Welcome

Sign in

Preventing Spam Sent through PHP Mail in cPanel

HomepageArticlesPreventing Spam Sent through PHP Mail in cPane...

The original article discusses unsolicited email sent through PHP’s mail function, and the risk of a server IP address being blocklisted. It recommends authenticated SMTP and describes disabling the PHP mail function in the WHM interface available at the time.

Disabling the PHP mail function

Sign in to WHM.
Open Service Configuration » PHP Configuration Editor, then select Advanced Mode.
Find disable_functions and enter mail in the field.

The article then describes restarting Exim.

PHP configuration showing the disable_functions setting
The mail function listed under disable_functions.

This article was originally published in Turkish on and has been migrated from our previous website. This English version is a translation of the original article. The content may reflect information from that time.

Copyright © 2026 All Rights Reserved
Top