below is my header to sent the mail to the user –
$to='example@example.com';
$recipient='example@example.com';
$headers = "From: noreply@xxx.com" . "\r\n";
$headers .= "X-Sender: <" . "$to" . ">\r\n";
$headers .= "Return-Path: <" . "$to" . ">\r\n";
$headers .= "Error-To: <" . "$to" . ">\r\n";
$headers .= "Content-Type: text/html\r\n";
mail("$recipient", "$subj", "$body", "$headers")
But the problem occurs when my go in spam (in gmail)
gmail said:-
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - myexoticfriends.myexoticfriends.com
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [510 32003] / [47 12]
X-AntiAbuse: Sender Address Domain - myexoticfriends.myexoticfriends.com
X-Source: /usr/bin/php
X-Source-Args: /usr/bin/php /home/exotic/public_html/test/test.php
X-Source-Dir: myexoticfriends.com:/public_html/test
Gmail: keeps on searching and tracking the list of the mails that are send/receive.
If you keep on sending the mails with same subject and content then it will automatically put mails in spam, plus, if the CTR ratio means the click ratio of your mail is less, then too Gmail send them in spam, don’t send the mails in bulk.