Jump to content

Hotmail, Gmail etc...


ToonMariner

Recommended Posts

Hi,

 

I have a problem with sending mail from the site I am working on.  Some users recieve the emails but those who use the major web based services (Hotmail, Yahoo, Gmail, AOL) don't even get mail delivered in their Junk folder - I have tested to check because I didn't quite believe it.

 

I am sending out a html formatted email with just one image in it...

 

Can any suggest a reason for this? Is it just my headers? Can anyone point me to some better headers to try and get through top the inbox...

 

Thank you VERY much for any help...

Link to comment
https://forums.phpfreaks.com/topic/73442-hotmail-gmail-etc/
Share on other sites

yes but I can't use a mass mailing system to send out 1 registration confirmation - these programs charge a flat fee for each campaign and then and additional (very small charge) per email in that campaign.

 

All I need is a set of headers that will allow me send a single email to a specific user and it get to them - at least into the junk box - they can then add the email to their safe list.

Link to comment
https://forums.phpfreaks.com/topic/73442-hotmail-gmail-etc/#findComment-370520
Share on other sites

this has worked for me in the passed, NOT tested with attachment.. NOTE the

//hotmail and others dont like PHP mailer.

<?php
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header .= "Organization: freaks\r\n"; 
$header .= "Content-Transfer-encoding: 8bit\r\n";
$header .= "Bcc: ".$emailadd."\r\n";
$header .= "From: PHP Freak <[email protected]>\r\n"; //this format seams ok
$header .= "Reply-To: freak <[email protected]>\r\n";//this format seams ok
$header .= "Message-ID: <".md5(uniqid(time()))."@{$_SERVER['SERVER_NAME']}>\r\n";
$header .= "Return-Path: <[email protected]>\r\n";
$header .= "X-Priority: 1\r\n";
$header .= "X-MSmail-Priority: Normal\r\n";
$header .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510\r\n"; //hotmail and others dont like PHP mailer.
$header .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441\r\n";
$header .= "X-Sender: [email protected]\r\n";
$header .= "X-AntiAbuse: This is a solicited email for - ".$org_var." mailing list.\r\n";
$header .= "X-AntiAbuse: Servername - {$_SERVER['SERVER_NAME']}\r\n";
$header .= "X-AntiAbuse: User - [email protected]\r\n";
?>

 

Hope this helps :)

Link to comment
https://forums.phpfreaks.com/topic/73442-hotmail-gmail-etc/#findComment-370705
Share on other sites

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.