I\'m using Mailgun to send transactional emails (tickets for events) and all the emails are sent to Outlook/Hotmail spam and I want to avoid that. I have added the SPF and DKIM
Your issue isn't your code, it a problem with using MailGun. If you check the email headers with the following site:
https://testconnectivity.microsoft.com/?tabid=mha
You'll see something similar to the following:
Spam Confidence Level 5 (Spam Confidence Interpretation - Spam)
Bulk Complaint Level 6 (Bulk Complaint Level - The message is from a bulk sender that generates a mixed number of complaints.)
The issue is that MS view anything from a shared MG IP as coming from a bulk sender, this impacts SPL and can raise it to 5 or above (spam).
How do I know this? I'm having the exact same issue. I think the only option will be to go for a private IP, but our sending volume is not high enough, so it looks like we've wasted a lot of time and effort on MG!
Does anybody know another bulk sender that avoids Hotmail spam?
OK, an update to this just in case it helps anybody. We have finally managed to get delivery to Outlook from MailGun, this is what we checked / corrected etc, hope it helps:
It is definitely worth checking the headers with https://testconnectivity.microsoft.com/?tabid=mha This will give you leverage when getting MG to switch out an IP with poor reputation.