httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Courtney <scourt...@sinenomine.net>
Subject Re: [users@httpd] Send e-mail with PHP and qmail mta in a CHROOT Jail
Date Wed, 14 Nov 2007 12:28:03 GMT
On Wednesday 14 November 2007 07:18, Carlos Eduardo Maiolino wrote:
> I need use the mail() function in php.

Have you tried setting up mail() so that it uses SMTP over TCP/IP rather than
trying to call the sendmail shell command?

http://www.php.net/manual/en/ref.mail.php

The documentation says that "SMTP" and "smtp_port" configuration options are
"used under Windows only", but if I recall correctly that just means that most
*NIX users don't _need_ to use these config options. I believe that they will
actually work under *NIX as well if you configure them.

Try setting sendmail_path to NULL, SMTP to "localhost", and smtp_port to 25,
and see if that helps.

This is a bit off-topic for this list, so feel free to write me off-list if
you want to discuss this suggestion further.

Kind regards,

Scott

-- 
-----------------------------------------------------------------------------
Scott D. COURTNEY, Principal Engineer                  Sine Nomine Associates
scourtney@sinenomine.net                           http://www.sinenomine.net/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message