Welcome to WebmasterWorld Guest from 23.23.53.177

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Problem with MAIL

code included for checking....

   
5:12 pm on Feb 28, 2002 (gmt 0)

10+ Year Member



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 = "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());

5:25 pm on Feb 28, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.
5:42 pm on Feb 28, 2002 (gmt 0)

10+ Year Member



That was it !

Thanks very much, I was on the verge of throwing the pc out of the window :)

5:42 pm on Feb 28, 2002 (gmt 0)

10+ Year Member



Hi UK_matrix,

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]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month