noatakzak Posted July 31, 2011 Share Posted July 31, 2011 For some reason the mailer function in my website is only partially working. It is designed to send 2 emails, but it only sends the second one. Please give me some advice. function sendRegister($first, $last, $user, $pass, $email){ $from = "From: ".EMAIL_FROM_NAME." <".EMAIL_FROM_ADDR.">"; $subject = "Troop 3 - Account Request"; $body = "An account request has been sumbitted " ."with the following information:\n\n" ."First Name: ".$first."\n" ."Last Name: ".$last."\n" ."Username: ".$user."\n" ."Password: ".$pass."\n" ."Email: ".$email."\n\n" ."http://www.westervilletroop3.org/adduser.php?urlfirst=".$first."&urllast=".$last."&urluser=".$user."&urlpass=".$pass."&urlemail=".$email."&urlaccess=2...7"."\n\n" ."- Troop 3"; $body2 = "We have recieved your request for an account " ."with the following information:\n\n" ."First Name: ".$first."\n" ."Last Name: ".$last."\n" ."Username: ".$user."\n" ."Password: ".$pass."\n" ."Email: ".$email."\n\n" ."We will send you an email if you get accepted, so make sure admin@troop3.0sites.org is in your email contact list so it won't be marked as spam.\n\n" ."- Troop 3"; mail("no...k@gmail.com",$subject,$body,$from); mail($email,$subject,$body2,$from); return true; } Quote Link to comment Share on other sites More sharing options...
noatakzak Posted July 31, 2011 Author Share Posted July 31, 2011 Strangely it started working again. If anyone has any ideas though, i'd still like to know if i'm doing something wrong. Quote Link to comment Share on other sites More sharing options...
PenTester Posted August 1, 2011 Share Posted August 1, 2011 So your problem is solved , right?! Quote Link to comment Share on other sites More sharing options...
noatakzak Posted August 1, 2011 Author Share Posted August 1, 2011 Yes Quote Link to comment Share on other sites More sharing options...
jje Posted August 1, 2011 Share Posted August 1, 2011 Glad your problem got solved! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.