Hello all, I used simple php email function but it send an email in junk folder or spam. Can anyone tell me why is this so? Her is the code: $host = "ssl://smtp.gmail.com"; $port = "465"; $to = " xx@gmail.com"; // 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:
Hi! Try 2 Use Your Domain Email Address In "From: ". e.g: your domain is "mywebsite.com" So U'll Have To Use "From: "; And Don't Use "@gmail" etc etc etc But U Can Redirect Emails To Your Account.
also make sure your server ip and or domain is not black listed http://www.mxtoolbox.com/blacklists.aspx
Hi I have used our company domain itself in the from address instead of gmail.com I have used 2 mail function one for sending form details and other for sending thank you to the person who submitted the form The problem i am getting here is Thank you mail is going into spam and the form detials are going into inbox Here is the code I have used for sending thank you mail $to1 = "$_POST