Jump to content

Trouble with mail()


melting_dog

Recommended Posts

Hi all. I have a simple mail script that doesnt appear to be working. I get a:

 

Parse error: syntax error, unexpected T_STRING

 

error:

 

My code is:

 

mail("$webmaster_email", 
"RSVP from WC Entry Form",
   "From: $email \n 
   Name: $firstname $lastname \n
   Phone Number: $phone \n
   Address: $postal \n 
Other Artist: $otherband \n
   Recieve more news: $newsagree" );

 

But i cant seem to see whats wrong with it. Can anyone point me in the right direction?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/266907-trouble-with-mail/
Share on other sites

  Quote

Hi all. I have a simple mail script that doesnt appear to be working. I get a:

 

Parse error: syntax error, unexpected T_STRING

 

error:

 

My code is:

 

mail("$webmaster_email", 
"RSVP from WC Entry Form",
   "From: $email \n 
   Name: $firstname $lastname \n
   Phone Number: $phone \n
   Address: $postal \n 
Other Artist: $otherband \n
   Recieve more news: $newsagree" );

 

But i cant seem to see whats wrong with it. Can anyone point me in the right direction?

 

Thanks

I can't really see any errors in the code you posted. Please post the entire script and please tell us what line you get the error at...

Link to comment
https://forums.phpfreaks.com/topic/266907-trouble-with-mail/#findComment-1368343
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.