Hi
I was wondering if anyone could let me know if its possible to send HTML emails in PHP thats aren't recognised as Junk by Windows Live Hotmail/Yahoo.
Thanks in advance.
PHP HTML email, that doesn't go in Hotmail/Yahoo Junk?
Moderator: General Moderators
It's certainly possible. If you use something that sends email that conforms to the RFC specifications for email (eg SwiftMailer), and your content doesn't meet their criteria for spam filtering then it'll be ok. It's a bit tricky though because what they consider to be spam changes quite often.
Alternatively you can pay to be on a whitelist but that's really expensive.
Alternatively you can pay to be on a whitelist but that's really expensive.
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Although it is a rather crude method for sending emails from a script it works for me a goes directly to the inbox of Hotmail. I haven't tried it with Yahoo though.
I hope it works for you too.
Code: Select all
$to = $destination;
$subject = "Please hotmail...please";
$message="<html style=\"height:100%;\"><body style=\"height:100%; margin:0; padding:0;\">";
$message.= $emailMsg;
$message.="</body></html>";
$from = "some_address@some_domain.com";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "Content-Transfer-Encoding: 7bit\r\n";
$headers .= "From: " . $from . "\r\n";
//SEND MAIL
$mailsent=mail($to,$subject,$message,$headers,"-f $from");