Reply LinkBack Thread Tools Search this Thread
Old 10-07-2008, 04:11   #1 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,997
php mail form being treated as spam

I have set up a mailform on a customers new site.

It works fine coming to me but when I change address to go to the customer they do not arrive.

I am guessing they are being picked up as spam and blocked.

Has anyone else encountered this problem?

Would adding more details to header info prevent this happening?

Any suggestions?

PHP Code:
mail($to,$subject,stripslashes($body),
"From: $email\r\nContent-Type: text/html; charset=iso-8859-15\r\n"
or print(
"Could not send mail."); 
__________________
  Reply With Quote
Old 10-07-2008, 04:41   #2 (permalink)
Pete Nice
Warchief
 
Pete Nice's Avatar
 
Join Date: Apr 2003
Posts: 507
Well I use this in my mail scripts and I've not encountered it being treated as spam - but it's pretty much the same as what you have:

Code:
mail("$to", "$subject","$body","From: $fromEmail\nContent-Type: text/html; charset=iso-8859-1");
  Reply With Quote
Old 10-07-2008, 05:20   #3 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,997
I think it is them and over zealous mail filter.

We are in the process of switching their hosting so will have to wait until then and all we will be well.

Thanks.
__________________
  Reply With Quote
Old 10-07-2008, 10:23   #4 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,696
Mail sent with the php mail filter often gets filtered by junk mail filters. I have found the phpmailer class (google it) works well for preventing that, especially if you set up smtp verification.
__________________
This space for rent.

Dads Japan
After Hours Japan
  Reply With Quote
Old 10-07-2008, 10:32   #5 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,997
Thanks, I will have a look for future ref.
__________________
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8