Hello, I'm interested to add SMTP authentication to the php.mail() function.
Is this something that the PHP dev community would endorse? I'm told that as
a newbie contributor I wouldn't have direct access to the CVS, that I'd have
to post my diffs to this list or get an existing developer to sponsor my
changes. I already did the digging around and know what needs to happen: a
small number of lines of code in /win32/sendmail.c SendText() to add the
necessary SMTP AUTH commands. Maybe this has come up before and been
rejected. Let me know. I did a search in the list archives but didn't turn
anything up.

Here is some background:

I'm developing a website that will be hosted on a linux box (LAMP), however
my work machine is MS Windows 2000. The website includes a submission page
which e-mails some HTTP form posted data back to me. For simplicity I'm
simply using the php.mail() function. However, when I'm developing on
Windows 2000, if I want to test the mail submission, I don't have an SMTP
relay running locally and my ISP requires authentication for outgoing SMTP.
So for now the php.mail() fails and I fake it until the php pages are
uploaded to the server. I know I could switch to another means of sending
mail (PHP class for SMTP, etc) but I thought it would be cool to hack PHP to
add this minor feature. I would plan to add two new php.ini settings
SMTP_usr and SMTP_pwd.

Looking forward to your comments.

John M. Calvert, M.Sc., MCSD

1310521 Ontario Inc.
49 Belmont Ave.
Ottawa ON K1S 0V2
(613) 730-9851
http://members.rogers.com/john-m-calvert/

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to