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: team@civ-online.com \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
Share on other sites

It seems that complains are coming from a range of email servers, such as:

 

- Comcast.net

- Gmail.com

- wp.pl

- optusnet.com.au

- 1337g4m3r.com

- mcshi.com

- aol.com

 

The list goes on :( This seriously isn't good for a game...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.