Linode Forum
https://forum.linode.com/

Problems sending mail from PHP with XMail
https://forum.linode.com/viewtopic.php?f=11&t=1982
Page 1 of 1

Author:  benw [ Sat Dec 03, 2005 12:34 pm ]
Post subject:  Problems sending mail from PHP with XMail

Hey everybody,

I have XMail installed under Debian and it's working okay, except I'm unable to send mail from a PHP script under apache2.

When I issue the mail() function, I get the following error in my error_log:

cannot find environment variable: MAIL_ROOT

MAIL_ROOT is set to /var/MailRoot in the init.d script. I've tried setting it manually with an export command, but I still get the same thing. I even tried Apache's SetEnv function to set it on startup but the error persists.

Any linux gurus out there have any ideas?

Thanks!
Ben

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/