phpmailer failed - Help Please

nightlrd 11 Oct, 2010
Hi all, I set up a form on my orgs site and have it set to email upon submit. I am getting a "PHPMAILER_RECIPIENTS_FAILEDemail@email.com" error when I tested it. When I check the server error logs I am seeing the following

[11-Oct-2010 12:31:59] PHP Warning:  is_writable() [<a href='function.is-writable'>function.is-writable</a>]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home1/xxxx/public_html) in /home1/xxxx/public_html/site/libraries/joomla/filesystem/path.php on line 200
[11-Oct-2010 12:31:59] PHP Warning:  is_writable() [<a href='function.is-writable'>function.is-writable</a>]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home1/xxxx/public_html) in /home1/xxxx/public_html/site/libraries/joomla/filesystem/path.php on line 201
[11-Oct-2010 12:47:19] PHP Warning:  Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home1/xxxx/public_html) in Unknown on line 0
[11-Oct-2010 12:47:19] PHP Warning:  File upload error - unable to create a temporary file in Unknown on line 0

Is the openbasedir restriction what is causing the mailer to fail? and if so, How could I fix this problem
GreyHead 12 Oct, 2010
Hi nighlrd,

Yes; the open_basedir restriction isn't allowing Joomla! to access the site temp folder. I guess it uses it to create a temporary file to build the email.

You need to give the Joomla! user access to a suitable temp folder either by changing the open_basedir restrictions (your ISP will have instructions) or by re-setting the "Path to Temp-folder" in the Site Global Configuration | Server page to a new location that isn't restricted.

Bob
This topic is locked and no more replies can be posted.