Hey,
All the PHP mail I send out (e.g. mail(); ) goes straight to spam.
Anyway I can combat this e.g. set headers or something?
Thanks,
Jake.
Hey,
All the PHP mail I send out (e.g. mail(); ) goes straight to spam.
Anyway I can combat this e.g. set headers or something?
Thanks,
Jake.
Try changing the From: headers? It might just be your E-mail provider's filter tho?
GoogleMail and Hotmail both filter as spam.
It will be there sender application header, try to change it.
i used to be NintendoNews. visit my blog or add me on twitter.
need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!
"I am the way, the truth, and the life. No one comes to the Father except through me"
John 14:6 (NIV)
How the hell can an Email provider block a PHP Function - I think it's because of the hostname/ as when you use it, it's from
[email protected]
(This is basically the format, I got this from my web hosting acc as a test more or less.)
[email protected]
an Email provider can't block a php function, and microsoft don't even use php, they'd have to use it too block it?
I used headers off of PHP.net and edited them to my needs.
PHP Code:$msg = "Message..."
$subject = "Mail";
$headers = 'From: '.$email . "\r\n" .
'Reply-To: '.$email . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($email, $subject, $msg, $headers);
Hi, names James. I am a web developer.
I think it's cause of this bit:
'X-Mailer: PHP/' . phpversion();
Jake.
No, that helps avoid spam, using x-mailer.
I'm having trouble avoiding spam too, and I set a lot of headers using a mailing class.
I don't understand to be honest ;S.
If anyone has some tips please say![]()
Last edited by Hypertext; 15-04-2008 at 03:57 PM.
How could this hapen to meeeeeeeeeeeeeee?lol.
Want to hide these adverts? Register an account for free!