homepage Welcome to WebmasterWorld Guest from 54.234.0.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

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

 

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)

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]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved