PDA

View Full Version : PHP Mail



Florx
10-04-2008, 06:30 PM
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.

Jme
10-04-2008, 06:35 PM
Try changing the From: headers? It might just be your E-mail provider's filter tho?

Florx
10-04-2008, 06:36 PM
GoogleMail and Hotmail both filter as spam.

timROGERS
10-04-2008, 06:43 PM
It will be there sender application header, try to change it.

Jme
10-04-2008, 06:49 PM
Try setting headers to change the From:

QuickScriptz
12-04-2008, 04:01 PM
GoogleMail and Hotmail both filter as spam.

No they don't? It probably has something to do with the content/subject/headers of the message being sent and your spam/junk filtering settings on your email account.

Independent
15-04-2008, 03:12 AM
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?

Protege
15-04-2008, 09:19 AM
I used headers off of PHP.net and edited them to my needs.



$msg = "Message..."
$subject = "Mail";
$headers = 'From: '.$email . "\r\n" .
'Reply-To: '.$email . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($email, $subject, $msg, $headers);

Florx
15-04-2008, 12:04 PM
I think it's cause of this bit:

'X-Mailer: PHP/' . phpversion();

Jake.

Hypertext
15-04-2008, 03:55 PM
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 :)

Agnostic Bear
15-04-2008, 04:13 PM
Use SMTP, simple.

Hypertext
15-04-2008, 05:46 PM
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.

Agnostic Bear
15-04-2008, 07:07 PM
Remove X-Mailer or set it as Thunderbird or something

Dentafrice
17-04-2008, 10:41 PM
Remove X-Mailer or set it as Thunderbird or something
you're kidding right?

Agnostic Bear
18-04-2008, 07:22 AM
you're kidding right?

If you can't see that I'm kidding you need to get out.

Dentafrice
18-04-2008, 11:26 AM
If you can't see that I'm kidding you need to get out.
Find a new insult, you have worn "get out", extremely out. Isn't funny anymore.

Agnostic Bear
18-04-2008, 12:11 PM
Find a new insult, you have worn "get out", extremely out. Isn't funny anymore.

You're still failing hard at grammar.

Florx
18-04-2008, 08:43 PM
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.

Want to hide these adverts? Register an account for free!