[UPHPU] mail()

justin justin at justinhileman.info
Tue Jul 10 09:37:29 MDT 2007


On 7/10/07, Justin Giboney <giboney at giboneydesigns.com> wrote:
> Is there anything special that a server needs to have to run the mail
> () function?
> I have apache running on a mac (10.4.10) with no mail/smtp.
>

mail() uses the local sendmail function on a linux box... i'm not sure
exactly what it does on a mac, so i can't directly address your
problem. but if it's doing the same thing as on a linux box, sendmail
can cause several problems. the one i've run into most is that, since
it's sending from your local box rather than an actual mail server, it
often gets caught by spam filters. also, if you send an email that
claims to be from "someuser at gmail.com" but actually comes from a non
gmail computer, it might get filtered too.

the other problem is that mail() isn't the easiest function to use.
the easiest fix (for both problems) is to use the PEAR::Mail and
bounce it off an SMTP server.


justin
-- 
http://justinhileman.info


More information about the UPHPU mailing list