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.
Printable View
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.
Try setting headers to change the From:
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);
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 :)
Use SMTP, simple.
I'm on SMTP. My moneys on somethings wrong with my headers. =/
Is it less spam-going if my x-mailer is phpver, or my system? It's set as my system right now.
Remove X-Mailer or set it as Thunderbird or something
Why does every thread turn into an arguement.
You do not have the right of reply because:
a) It's a rhetorical question,
b) I'm closing the thread.
Thanks for your help :).
Jake.