Forum Moderators: coopster
I've checked this code dozens of times and I can't figure out why the $message value is not printed on the email that is sent out, all other values work correctly.
Thanks for any help.
_______________________________________
$to = $email ;
$from = "me@someone.com";
$subject = "Membership Details";
$message = "Hello".
"\n".
"\n Your membership details :-".
"\n".
"\n Membership Id :". $actualid.
"\n Password :". $password.
"\n".
"\n You submitted the following details :-".
"\n".
"\n First Name :". $firstname.
"\n Last Name :". $lastname.
"\n Nickname :". $nickname.
"\n Address :". $address1.
"\n :". $address2.
"\n :". $county.
"\n :". $postcode.
"\n E-mail :". $email.
"\n E-mail privacy :". $emailprotect.
"\n ICQ No :". $icq.
"\n ICQ privacy :". $icqprotect.
"\n MSN No :". $msn.
"\n MSN privacy :". $msnprotect.
"\n Your details :". $notes.
"\n".
"\n We appreciate you taking the time to become a member. Thanks".
mail($to, $subject, $message, "From: admin@me.com\nReply-To: admin@me.com\nX-Mailer: PHP/" . phpversion());
Thanks very much, I was on the verge of throwing the pc out of the window :)
I think sugarkane might be right. On the last line of the message variable, you have a period and after that you have no more code
"\n We appreciate you taking the time to become a member. Thanks".
The bold is where you have an extra period.
Just change it for ;
Hope that helps. :)
[added]Guess I was too late[/added]