This question already has an answer here:
- How do you make sure email you send programmatically is not automatically marked as spam? 21 answers
I have Two domain. For Example: domain1.com
and domain2.com.
I am sending email using PHPMailer and I used
$email_body="<a href='http://www.domain1.com'>View</a>"
Above code is working perfectly and emails also go to inbox but when I am using my second domain instated of first then emails are going to spam.
$email_body="<a href='http://www.domain2.com'>View</a>"
Even I tried
"<a href='www.domain2.com'>View</a>"
"<a href='http://domain2.com'>View</a>"
If I remove domain2.com and type some dummy text then also emails go to inbox. Would you help me in this?