melting_dog Posted August 10, 2012 Share Posted August 10, 2012 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 More sharing options...
MMDE Posted August 10, 2012 Share Posted August 10, 2012 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.