Hello everyone, I'm curious about something. I have a PHP Email script that I'm trying to get working and I think the code is right but just need a second pair of eyes to check it. It seems something in my if elseif else structure is hosed. The site does indeed email properly because I have each request followed by an autoresponder to the message sender. This is the block I'm stuck on:
Code:
if ($to=="sales@mydomain.com") $subject="RFQ" mail("1112223333@messaging.sprintpcs.com","","noreply@mydomain.com","You have received a site RFQ request.") elseif ($to==webmaster@mydomain.com) $subject="Website Related"; mail("1112223333@messaging.sprintpcs.com","","noreply@mydomain.com","You have received a site website request.") elseif ($to==support@mydomain.com) mail("1112223333@messaging.sprintpcs.com","","noreply@mydomain.com","You have received a site support request.") $subject="Account support request"; else $subject="Contact Request"; mail("1112223333@messaging.sprintpcs.com","","noreply@mydomain.com","You have received a site contact request.")
Comment