jsshanthi Posted September 13, 2010 Share Posted September 13, 2010 Hi, I Have a form after successful submission a mail must be send to particular recipient and thank you mail is send to the person who filled the form ,The problem is i am receiving mails in spam whats the reason for going in spam I have kept Capture code also Can please let me know what to do Link to comment https://forums.phpfreaks.com/topic/213277-reasons-for-recieveing-mails-in-spam-after-successfuly-submitting-the-form/ Share on other sites More sharing options...
chintansshah Posted September 13, 2010 Share Posted September 13, 2010 Hi jsshanthi, Can you please set the header in mail function and then check. But, please set "From" in mail function. Link to comment https://forums.phpfreaks.com/topic/213277-reasons-for-recieveing-mails-in-spam-after-successfuly-submitting-the-form/#findComment-1110517 Share on other sites More sharing options...
jsshanthi Posted September 13, 2010 Author Share Posted September 13, 2010 Her is the code: I have been included headers $host = "ssl://smtp.gmail.com"; $port = "465"; $to = " [email protected]"; // note the comma $subject = " $_POST[company_website] "; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: About Wholesale Account' . "<$_POST>\r\n";$headers .= 'Cc: [email protected]' . "\r\n"; $headers .= 'Bcc: [email protected]' . "\r\n"; mail($to, $subject, $message, $headers); Link to comment https://forums.phpfreaks.com/topic/213277-reasons-for-recieveing-mails-in-spam-after-successfuly-submitting-the-form/#findComment-1110521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.