Abdul Qadir wrote: > > > hy dear all > i developed a php script for email generation the email generated > properly but it goes to spam/bulk folder how can i set my email code so > that the emails will not goes to spam >
I have found this in the past with the mail() function of PHP. After messing with the headers forever I never could get it to go to yahoo or gmail accounts without going to the spam folder. The best work around was to use an SMTP server and send through that instead. Search through phpclasses.org for an SMTP class that suits you. This one seemed to work well for me: http://www.phpclasses.org/browse/package/4412.html Using the SMTP class, it gave a much lower spam score according to spam assassin and was delivered to yahoo & gmail with no problems. It should go without saying that if you are sending out emails with known spam keywords such as "Viagra" in the subject or body, they will be marked as spam no matter how you send it. Good Luck, Billy P.