How to send non-suspicious email thru php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Vinnar
Forum Commoner
Posts: 32
Joined: Tue Feb 01, 2011 11:00 am

How to send non-suspicious email thru php?

Post 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
litebearer
Forum Contributor
Posts: 194
Joined: Sat Mar 27, 2004 5:54 am

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

Post by litebearer »

Might read these posts - coul dbe insightful
http://www.eggheadcafe.com/software/asp ... -away.aspx
danwguy
Forum Contributor
Posts: 256
Joined: Wed Nov 17, 2010 1:09 pm
Location: San Diego, CA

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

Post 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.
Vinnar
Forum Commoner
Posts: 32
Joined: Tue Feb 01, 2011 11:00 am

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

Post 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
Post Reply