Re: setting up php.ini to use my mail server

From: Matthew Schumacher <schu@schu.net>
Date: Fri Sep 23 2005 - 09:10:37 AKDT

Tim Jordan wrote:
> I have an e-store that I'm very close to deploying for a non-profit.
> Because of $ restrictions I have offered to host the server. My problem
> is that I'm having trouble configuring PHP to send mail through my mail
> server.
>
> The e-store is running on a dedicated debian server.
> My mail server is running on a debian qmail server.
>
> On the e-store server I set the php.ini to use sendmail - no go! Then I
> tried to point the smtp line to my mail servers local address - no go!
>
> Any guidance is appreciated....Thanks....Tim
>

Using the local sendmail is bad. There are may problems with how
sendmail treats trusted/nontrusted users, also because you are relaying
from localhost you may inadvertently omit your web code from any
spam/virus rules you have in place. I recommend that you skip using the
php mail() function and start using the Net_SMTP object in pear. It
connects to the mail system over a tcp socket just like any other client.

Here are the docs: http://pear.php.net/package/Net_SMTP

When sending mail make sure you add headers such as From, To, Subject,
X-Sender, X-Mailer, X-Priority, Return-Path, otherwise your messages may
get marked as spam.

HTH,
schu
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Fri Sep 23 09:10:54 2005

This archive was generated by hypermail 2.1.8 : Fri Sep 23 2005 - 09:10:54 AKDT