Question

I need your help! I have a code in PHP for sending emails (PHPMailer version 5.2.7). Send email from PHP, I use this method usually. I explain me...

The mails sent go directly to SPAM folder to Hotmail, Gmail...

I have my own server with two domains (unique IP for two domains). In the domain1 the mails sent correctly (PHPMailer 5.2.7) and go directly to de inbox folder. In the domain2 the mails sent correctly but mails go directly to SPAM folder (PHPMailer 5.2.7)!!

Which is the difference between domain1 and domain2?? Have the same ip... I can do mailings to domain2 not reach the spam folder?

P.D.: Shipping method in PHPMailer is SMTP with user and pass verified.

Was it helpful?

Solution

There could be multiple factors that results in mail getting routed to spam folder. I don't think, it is anything to do with PHPmailer. It is something to do with your IP reputation, complaints, activity, user engagement and some other factors.

OTHER TIPS

One reason could be, that your mail server uses only one ip to send from. Maybe the the reverse lookup from that ip resolves to your domain1.

Also related are dkim and spf records.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top