I have a form after successful submitting the form a mail is send to admin person regarding the form details and a thank you mail is send to the person who filled the form
For these I have used to mail function
The problem here I am getting is only one mail is getting in inbox and other mail is getting in spam
please let me know what to do and i just want to why the mails are going into spam
Here is the code i have been used for sending form details
$to = "xx@company.in"; // 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 Reseller Account" . "<$_POST[email]>\r\n";
$headers .= "Cc:xx@company.in" . "\r\n";
$message ="I have used Html";
mail($to, $subject, $message, $headers);
//this mail is for thank you
$host = "ssl://smtp.gmail.com";
$port = "465";
$to1 = "$_POST[email]";
$subject1 = "Thanks For Submitting form";
$headers1 = "MIME-Version: 1.0" . "\r\n";
$headers1 .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers1 .= "From: Enquiry About Reseller" . "<xx@company.in>\r\n";
$message1 ="I have used Html";
mail($to1, $subject1, $message1, $headers1);
This is the code I have been used I dnt know where the mistake please correct it
MOD EDIT: When posting code...USE CODE TAGS!!!
This post has been edited by JackOfAllTrades: 14 September 2010 - 06:08 AM
Reason for edit:: Added code tags

New Topic/Question
Reply
MultiQuote








|