ayok Posted February 15, 2007 Share Posted February 15, 2007 Hi.. another question from a newbie.. I have a newsletter, and I tested to send emails to my accounts in yahoo, gmail, hotmail, and my own server. The emails were sent successfuly, except... HOTMAIL.. When I just sent emails with text format, my hotmail account received it in the bulk/junk mails folder. After I changed the email format to html, it didn't receive it at all... How can I send php emails to hotmail? thx... ayoksus Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted February 15, 2007 Share Posted February 15, 2007 did you double checked that your html mails have these <html></html> tags around them? Ted Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted February 15, 2007 Share Posted February 15, 2007 i dont think there is a way to prevent it going to the junk area in hotmail, just warn users that the email may be in the junk folder. Quote Link to comment Share on other sites More sharing options...
steelmanronald06 Posted February 15, 2007 Share Posted February 15, 2007 There is. Used to, you could mark mail a priority and it went to inbox. Now, since they upgraded, they require something different. I forgot what it was, but try google. I remember reading about it not to long ago. In fact, I had similar problems: http://lampgeekz.blogspot.com/2006/12/hotmail-problems.html Anyways, simple mail wrappers will get the trick done. I forgot what I used, I would have to dig through my old code snippets, but I remember googling it and getting it on the 2nd or 3rd result Quote Link to comment Share on other sites More sharing options...
redarrow Posted February 15, 2007 Share Posted February 15, 2007 Try this basic code as it is basic you might be lucky. hotmail are now and going to always block users mail that are not added to there address book. but from time to time the mail gets to the inbox. try this ok. <?php $to = "recipient@example.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> Quote Link to comment Share on other sites More sharing options...
bitt3n Posted February 15, 2007 Share Posted February 15, 2007 I have had a problem with mail() failing to work (mail goes fine to gmail, doesn't even appear in junk folder in hotmail). I found that using PHPMailer to send via an authenticated SMTP server would get the mail to go through to hotmail consistently (although it still tends to end up in the junk folder, but this appears to be on account of my shared server's being flagged). There is. Used to, you could mark mail a priority and it went to inbox. Now, since they upgraded, they require something different. I forgot what it was, but try google. I remember reading about it not to long ago. In fact, I had similar problems: http://lampgeekz.blogspot.com/2006/12/hotmail-problems.html Anyways, simple mail wrappers will get the trick done. I forgot what I used, I would have to dig through my old code snippets, but I remember googling it and getting it on the 2nd or 3rd result if it were possible to get it into the inbox using a mark of some kind, what's to stop spammers from using the mark? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.