Page 1 of 1

How to send non-suspicious email thru php?

Posted: Fri Feb 04, 2011 8:48 am
by Vinnar
Wut's happening forum

So everytime I sent an email using mail ( ) like this:

Code: Select all

$to = "$email";
$subject = "Mailing List Confirmation";
$headers = "From: blah blah blah";
$body = "Hello, $fname

Thank you for your subscription to this update mailing list.

Once an entry related to $query is updated, an email notification would be sent to you promptly.

Regards,

Blah blah blah.";

mail($to, $subject, $body, $headers);

I mean it works perfectly, but there's always an messsage saying "this email is suspicious" or some sort when I use hotmail

but when i use gmail, no such warning appears. Still i would like to send a "non-suspicious" email in case some users r using hotmail.

Is there anyway i can fix up this code to enhance its security level?

Thx

Re: How to send non-suspicious email thru php?

Posted: Fri Feb 04, 2011 1:55 pm
by litebearer
Might read these posts - coul dbe insightful
http://www.eggheadcafe.com/software/asp ... -away.aspx

Re: How to send non-suspicious email thru php?

Posted: Fri Feb 04, 2011 2:01 pm
by danwguy
I had that exact same problem sending an email in our company using outlook to recieve the email. The problem is the subject line, outlook contains an automatic thingy (I know very technical right) that gives the email a score based on the subject line and sender. I was sending the email using subject line "Credit application form" and it would say spam and send to junk mail, I had to change subject line to "Credit Application Confirmation" for it to go through to inbox without any problems. Try changing the subject line to something less generic or try using the word confirmation in the subject line.

Re: How to send non-suspicious email thru php?

Posted: Fri Feb 04, 2011 2:18 pm
by Vinnar
litebearer wrote:Might read these posts - coul dbe insightful
http://www.eggheadcafe.com/software/asp ... -away.aspx
thx for the post i will go thru it
danwguy wrote:I had that exact same problem sending an email in our company using outlook to recieve the email. The problem is the subject line, outlook contains an automatic thingy (I know very technical right) that gives the email a score based on the subject line and sender. I was sending the email using subject line "Credit application form" and it would say spam and send to junk mail, I had to change subject line to "Credit Application Confirmation" for it to go through to inbox without any problems. Try changing the subject line to something less generic or try using the word confirmation in the subject line.
ya indeed i did put Update Mailing List Confirmation on subject line with capital letters and the word confirmation in it. Still warning appears in hotmail