Jump to content

Quick help regarding MAIL()


BRUm

Recommended Posts

Dear PHP enthusiasts!

 

I'm in need of some quite critical help. At the moment, I have created a fairly successful MMORPG using PHP and MySQL. However, the activation link I send via email using the standard PHP Mail() function seems to be giving a suspicious number of complaints regarding people not receiving the emails. Here is how I have used the function, I have tried to use the extra parameters in hope it would solve the problem, yet it hasn't:

 

$headers = "From: [email protected] \r\n";
$headers.= "Content-Type: text/html; charset=ISO-8859-1 ";
$headers .= "MIME-Version: 1.0 ";
/*notice there aren't any \r\n after the second two header additions. This is what made this version work correctly*/
mail("$form_email_address", "Civ-Online Confirmation Email", $body, $headers); 

 

I had taken this from another website's example.

 

All help is greatly appreciated! I await any help :)

 

Lee.

Link to comment
https://forums.phpfreaks.com/topic/49161-quick-help-regarding-mail/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.