Re: Send e-mail with PHP and qmail mta in a CHROOT Jail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx                           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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux