Jump to content

problem sending


chriscloyd

Recommended Posts

heres my code it wont send the mail once and awhile it will but 90% of the time it wont

[code]
$ToMail = $_POST['email'];
$FromMail = "From : [email protected]";
$FromName = "The Cloyds";
$Subject = "New Member at CloydFamily.com";
$headers ='From: [email protected]' . "\r\n" .
   'Reply-To: [email protected]' . "\r\n" .
$Message = "Hi,\n\n".
"Welcome To The Site CloydFamily.com ".
"Heres Your Information For Loging In".
" But Before You Do You Must Confirm/Verify Your Account:\n".
"information\n\n".
"=====================\n".
"First Name: ".$_POST['firstname']."\n".
"Last Name: ".$_POST['lastname']."\n".
"Email Address: ".
"".$_POST['email']."\n".
"password: ".$_POST['password']."\n\n".
"=====================\n\n".
"Copy And Paste The Link Below To Confirm Your Account, or Click On The Link Below\n".
"\n".
"http://cloydfamily.com/index.php?module=verify&ActivationCode=".$_POST['ActivationCode']."&username=".$_POST['username']."\n";
mail($ToMail,$Subject,$Message,"From : The Cloyd's");
[/code]
Link to comment
https://forums.phpfreaks.com/topic/6366-problem-sending/
Share on other sites

I can't see anything specifically wrong, but here's a generic debugging tip.

Comment out all your extras and get an absolutely basic function working. Then add back you extra bits one-by-one until it stops working and then the last bit you added back is where you need to look for the glitch. Bear in mind that sometimes there are more than one issue.
Link to comment
https://forums.phpfreaks.com/topic/6366-problem-sending/#findComment-23110
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.