Mail()
Posted: Mon Dec 17, 2007 9:10 am
I'm trying to make a simple activation email and... I'm having problems:
I'm not receiving any emails, and I can't figure out why. 
Edit: After reading the php manual more thoroughly, I removed the "\r" from the headers because apparently some unix servers and gmail don't like them. However, It's still not working. I've also tried removing the X-Mailer header, but that doesn't seem to make a difference either. Help, please!
Code: Select all
$to = $e;
$subject = 'Chalksdesign Forum Activation';
$message = "Welcome to Chalks Design forums, " . $u . ". To activate your account, please go to the following link: http://forums.chalksdesign.com/activation.php?u=" . $u . "&code=" . $activationCode . " Please do not reply to this email. Thank you!";
$headers = 'From: forums@chalksdesign.com' . "\r\n" .
'Reply-To: forums@chalksdesign.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);Edit: After reading the php manual more thoroughly, I removed the "\r" from the headers because apparently some unix servers and gmail don't like them. However, It's still not working. I've also tried removing the X-Mailer header, but that doesn't seem to make a difference either. Help, please!