Phpmailer Sending Mail to Spam in Hotmail. How to Fix

PHPMailer E-mail with SMTP recognizes as Junk in hotmail

Who is hosting this application? I had the same issue for one of my clients on Godaddy and found out even if I have authenticated SMTP, I can't still send emails or when it does send it goes to spam.

Just make sure require ports are open.

Php mailer goest to spam-box only with outlook(hotmail)

First of all I can see that you are using a very old version of PHPMailer that contains many bugs and several known vulnerabilities, so upgrade now.

In answer to your question, don't do this:

$mail->Sender = $_POST['user_email'];

That's forgery and will either cause your messages to be rejected altogether or spam filtered. Use your regular from address instead, i.e., don't bother setting the Sender property at all.

Even with this fixed, there is no guarantee that your messages will not be marked as spam; this is not something you have any direct control over, and it will vary from one ISP to another. There are many other factors that can influence this such as SPF, DKIM, DMARC, TLS, DNS settings, your content and sending history, and many other things.

While I'm here, when you say Your password is ".$user_password, this suggests that you might be storing passwords in plain text. Don't do that, it's very insecure, and PHP has built-in functions to help you do it the right way, and there are plenty of answers on here and elsewhere to help you with that.

phpMailer not arriving in Hotmail?

Had the same issue. I have checked the whole script 30 times. Each setting each . and , Checked and rechecked dns records dkim and spf 100 times.

Nothing worked.

I e-mailed hotmail/outlook/live about the issue. I didn't expect any help but within a few hours the problem was solved.

It wasn't in the script. Hotmail just blocks any e-mail that is sent trough most webpages. Even if your spam reputation is fine. They have placed the server's ip on a whitelist and the problem was solved.

They can change it back if they detect bad behavior. There's a limit for sending e-mail. If your server has a bad reputation they aren't likely to add the server to their whitelist. This can be an issue on shared hosting packages. Someone else on the same server where you host your website can f up the servers reputation.

Everytime my mail goes to spam in phpmailer

Based on you code i notice that you are sending an email directly from you web page on your domain.

For example you used an @hotmail.com address.

When the recipient receive the emails the mail service of the recipient may test a reverse DNS of the sender of the mail. So the sender is from @hotmail.com but the mail comes from your domain which of course is not hotmail.com.

So I receive a mail from an address @hotmail.com but the IP sender isn't related at all with domain hotmail.com: that's SPAM!

http://en.wikipedia.org/wiki/Reverse_DNS_lookup

I think a possible solution is: in you PHP code use authenticate with SMTP and from there send the mail!

PHPMailer goes to spam

Apart from the possibility that your server may be blacklisted for some reason, the most common cause for emails landing in spam servers that i encountered is that the from-address and the server's name do not match.

Consider a from-address like someone@mydomain.com sent from a server cheapwebhosting.com, the recipient mail server sees the discrepancy and will most likely consider this a spam message.

So, you should check the message headers of a test email if something like this is happening here (or if you notice anything else that looks fishy)

PHPMailer - mails going straight to spam

This does sound more like a configuration issue with your mail server and/or your DNS server. Your mail server does not appear to be "trusted" enough, so you don't get enough "positive" points from GMail (and mail clients). I notice that you're using postfix as your mailer... Have you configured it properly?

I would suggest you configure postfix first. For example, here's a guide on how to do it in CentOS:

http://wiki.centos.org/HowTos/postfix

Second, you should add an SPF record to your DNS server:

http://en.wikipedia.org/wiki/Sender_Policy_Framework

Third, it would be good to have a reverse lookup entry for your server:

http://en.wikipedia.org/wiki/Reverse_DNS_lookup

You will need to do the above and some more to make sure that clients don't flag your mail as spam, and you don't get blacklisted

Here's a good list of things to do to avoid getting blacklisted:

https://www.supportsages.com/prevent-your-mailip-from-getting-marked-as-spamblacklisted-a-few-tips/



Related Topics



Leave a reply



Submit