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.

Reply via email to