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 : registration@cloydfamily.com";
$FromName = "The Cloyds";
$Subject = "New Member at CloydFamily.com";
$headers ='From: webmaster@cloydfamily.com' . "\r\n" .
   'Reply-To: support@cloydfamily.com' . "\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
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
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.