Jump to content

Reasons for recieveing mails in spam after successfuly submitting the form


jsshanthi

Recommended Posts

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

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);

 

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.