May behoove you to check maillog.

Its your local mail exchanger.




----- Original Message -----
From: "Richard Peacock" [richard.peac...@minorplanet.com]
Sent: 06/15/2009 11:48 AM CET
To: <users@httpd.apache.org>
Subject: RE: [us...@httpd] sending email



I don't think this is an Apache problem, it's either bad PHP or problem
with your esmtp configuration by the sounds of it.



Have you checked the MAN pages for your esmtp program or checked that
your PHP replaces any invalid chars that could prevent emails being
sent?



Have you tried to create a simple test.php page where when you browse to
it, it spits out an email to a test email address without you having to
enter an email address etc in a previous form.



Test.php would read:

<?php

mail("t...@test.com", "The Subject", "Hello world");

?>



When all's said and done though, Apache has nothing to do with sending
emails, in a nutshell, it just serves webpages.





________________________________

From: Lyle Wincentsen [mailto:lyle.wincent...@gmail.com]
Sent: 13 June 2009 14:46
To: users@httpd.apache.org
Subject: [us...@httpd] sending email



I'm trying to send an email when a user hits the submit button on a
webpage, but the email never goes out. I'm using the php mail function
as follows:



mail($recipient_address, $subject, $body);



It works fine for me if I send it from the php command line, but not
from my web page. I use esmtp as my sendmail agent and I have put a copy
of the .esmptrc file in the home directory for my web server (my web
server runs as www-data and it's home directory is /var/www as listed in
the /etc/passwd file). The file is readable by the www-data group.



There is nothing in /var/log that tells me anything - in fact, all the
mail.x logs are empty.



Any ideas greatly appreciated.




**********************************************************************
Privileged/Confidential Information may be contained in this
message. If you are not the addressee indicated in this
message (or responsible for delivery of the message to such
person), you must not copy, distribute or take any action in
reliance to it.
In such case, you should destroy this message and kindly
notify the sender by reply email. Please advise immediately
if you or your employer do not consent to Internet email for
messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official
business of Minorplanet Systems plc shall be understood as
neither given nor endorsed by it. Minorplanet Systems plc, Registration no: 
3372097
Minorplanet Limited, Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7 2AA
VAT #: 698 1438 86
**********************************************************************
 

Reply via email to