Re: mail() help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Your email is going to the bulk mail folder because the email provider
believes that it's spam.  It's nothing specifically wrong with your
email, there is no "this isn't spam" flag, otherwise everyone would set it.

To figure out why the email is being marked as spam, check the program
that is doing the filtering.  Most of the filtering programs will list
the tests which matched in the headers.  You can then try and fix the
problems highlighted.

A few suggestions from what you provided below, I believe your From
header is incorrect.  You could try not sending HTML in the message or
sending properly formed and MIME typed HTML, along with a non-HTML version.


David

suresh kumar wrote:
> Hi,
>       I  am using php mail function to send mails to our customers.but when i send mail to them.it is getting received in customers bulk folder .i want mail to get received in customers inbox.i dont know the reason why its getting stored in bulk folder.
>    
>        i attached the code.below,any one help me
>                 
>           $to='suresh_nsnguys@xxxxxxxxxxx';
>                 
>         $subject='Password from MyAdTV';
>                         
>         $headers  = 'MIME-Version: 1.0' . "\r\n";
>         
>         $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
>         
>         $headers .= 'From: MyADTV <asureshkumar_1983'">@yahoo.co.in>' . "\r\n";
>         
>         $headers.= 'X-Mailer: PHP/' . phpversion(). "\r\n";
>                                         
>         $sendmessage = "<br>Here is the information you requested<br><br>Your Logon name and Password details for MyADTV Account<br><br><b> your LogonName is </b>: suresh <br><br><b> your Password is </b> rajays<br><br>If You Want To Login into Your MyADTV Account,<a href=\"Click'>http://myadtv.com/login.php\";>Click Here</a><br><br>";
>   
>                    
>          mail($to,$subject,$sendmessage,$headers);
>   
> 
> Christopher Weldon <cweldon@xxxxxxxxxxxxxxxxxx> wrote:
>   -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> suresh kumar wrote:
> 
>>Hi to all,
>>i am having one doubt regarding php mail function.i am using php mail() function to send mail to the users.but when i send mail throught php its going to the users bulk folder but not to the user inbox.i dont know the reason.
>>
>>Is there any setting that is requried in the php.ini file (or) the user have to change their setting in their mail (or) is there any option available to send mail to the user inbox.tnxs for reply
>>
>>A.suresh
>>
>>
>>
>>
>>---------------------------------
>>Find out what India is talking about on - Yahoo! Answers India 
>>Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
> 
> 
> There are several things you need to check for, and probably add to your
> emails that you're sending.
> 
> Number one, add additional headers to make SPAM / Bulk filters realize
> the message is not SPAM or should not be considered SPAM. IE:
> 
> $headers = "From: Suresh Kumar \r\n".
> "X-Mailer: PHP 4.3.2\r\n".
> "X-Sender: $_SERVER['HTTP_HOST']\r\n".
> "X-Comment: If you can put a comment here, do it.\r\n";
> 
> mail($to, $subject, $body, $headers);
> 
> The above is considering you have already declared the $to, $subject,
> and $body variables. Also, make sure your $subject is not
> 'undisclosed-recipients;' or something like that - it's a big no-no and
> will definitely flag some SPAM filters. Put a valid e-mail address - but
> you can still use the BCC-headers and everything should go just fine.
> Alternatively, if your list is not too large, it looks better to run a
> for / while loop to send each recipient a message directly (ie: not
> using BCC) as that will cut down on the SPAM probability.
> 
> Second, if you are making MIME emails, make sure you are doing so
> correctly. You can learn about creating multipart/alternative MIME
> emails more at www.php.net/mail.
> 
> Finally, if none of the above works, it would be helpful for us to see
> the headers of the received message from one of your recipients where
> the message was put in the BULK folder.
> 
> - --
> Christopher Weldon, ZCE
> President & CEO
> Cerberus Interactive, Inc.
> cweldon@xxxxxxxxxxxxxxxxxx
> 979.739.5874
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFFBaG2Zxvk7JEXkbERAgZiAKCJVQfno2fAca13Sx7aXPWD2WMgUwCeOMBX
> grbViYDnAXXy8l1i4liVHzE=
> =ka5I
> -----END PGP SIGNATURE-----
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux