Welcome to WebmasterWorld Guest from 22.214.171.124 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Problem with MAIL code included for checking.... UK_matrix msg:1314263 5:12 pm on Feb 28, 2002 (gmt 0) Hi again,
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 = "firstname.lastname@example.org"; $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: email@example.com\nReply-To: firstname.lastname@example.org\nX-Mailer: PHP/" . phpversion());
sugarkane msg:1314264 5:25 pm on Feb 28, 2002 (gmt 0)
That's a puzzler... the only thing I can suggest is that you have included a trailing dot on the last line of the $message definition - if that isn't a typo in your post it could be worth removing it and seeing what happens. UK_matrix msg:1314265 5:42 pm on Feb 28, 2002 (gmt 0)
That was it !
Thanks very much, I was on the verge of throwing the pc out of the window :)
circuitjump msg:1314266 5:42 pm on Feb 28, 2002 (gmt 0)
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]