Page 1 of 1
Email being sent to bulk folder
Posted: Thu Dec 16, 2004 5:47 pm
by jtc970
I wrote a 'Tell a friend" script that emails a friend a link to the page you are on. the problem is with Yahoo mail it goes to the Bulk folder.
Is there something I am missing, maybe in the header, to cause this?
Posted: Fri Dec 17, 2004 1:53 am
by kettle_drum
Umm...well what headers are you using at the moment? You can always add:
Code: Select all
MIME-Version 1.0
Content-Type: text/html; charset=iso-8859-1
From: name <me@name.com>
X-Mailer: My personal site
Other than those sorts of things you just have to not have the email look like spam. Make sure the address that sends it is from a valid domain name, and that the IP you send the email from is related to that domain name. Try to avoid using keywords that maybe related to spam.
If all that doesnt work, then you just have to tell the person to flag it as non-spam.
Posted: Fri Dec 17, 2004 12:09 pm
by AGISB
If you mail using the mail() function you have a problem.
mail() sends the mail to sendmail and sendmail relays the mail. Because sendmail relays the mail it gives it a new address. This new address is != the one you send from and the mail goes to the spam folder.
You can solve this giving mail() another parameter (see mail() instructions) but this gives a warning message in the mail header.
The best solution is to install a php mail handler like phpmailer
Posted: Fri Dec 17, 2004 12:14 pm
by Joe
I have came across this problem before. The headers are the problem. Go with kettle_drums advice.