PHP mail function is spammer?

PHP mail function is spammer?

am 02.08.2007 00:16:08 von Sillaba atona

I don't understand why any message sent with mail functions is
automatically stored in the spam by Gmail.

Sillaba

Re: PHP mail function is spammer?

am 02.08.2007 01:15:08 von nigel_moss

While the city slept, Sillaba atona (NOSPAM@tin.it) feverishly typed...

> I don't understand why any message sent with mail functions is
> automatically stored in the spam by Gmail.
>

There could be many and varied reasons...

Are you setting a return path? And is that the same as the address the mail
"comes" from?
Does the mail you are sending have a "from" address that corresponds to the
server you are sending from?
Does the mail you are sending have anything in it that could be construed as
spam? eg, html email with much graphics, little text, etc
Is the server you are running off on any spam lists?
There are more issues to consider, but I can't think of any right now (just
come back from the pub ;-) )

Theoretically, if you are sending a few emails out from the mail function,
you shouldn't suffer too much, unless some of, or all, or more than, the
above are an issue.

Hope that helps,
Nige

--
Nigel Moss http://www.nigenet.org.uk
Mail address will bounce. nigel@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"

Re: PHP mail function is spammer?

am 03.08.2007 04:22:42 von Mark Shroyer

On 2007-08-01, nice.guy.nige wrote:
> Are you setting a return path? And is that the same as the address the mail
> "comes" from?
> Does the mail you are sending have a "from" address that corresponds to the
> server you are sending from?
> Does the mail you are sending have anything in it that could be construed as
> spam? eg, html email with much graphics, little text, etc
> Is the server you are running off on any spam lists?

One particular thing to check for is whether the domain you're
mail()ing messages "from" has any SPF records, and if so whether
those records indicate an SPF FAIL for the machine which your PHP
app is running on. GMail does perform SPF validation on incoming
messages.

--
Mark Shroyer
http://markshroyer.com/