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

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct