PHP - mail function() issue

August 2017




The mail function() is blocked by most free hosts for security reasons (avoid spamming), the IP address of the machine which requested the script will be indicated in the header 'X-MM - Mail-From-IP.

The syntax is:

mail ($ address, $ title, $ message, $ headers); 


with
$ Send the address of the mail;  
$ Under the title of the mail  
$ Message body of the mail  
$ Headers header optional 

Related


Published by jak58. Latest update on April 24, 2012 at 10:58 AM by jak58.
This document, titled "PHP - mail function() issue," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).