PHP - mail function() issue

Ask a question

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); 

$ Send the address of the mail;  
$ Under the title of the mail  
$ Message body of the mail  
$ Headers header optional 
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team