Applicable to:
- Plesk Onyx for Linux
Symptoms
- Cannot send email via contact form using Web Presence Builder:
CONFIG_TEXT: Your message could not be sent due to an internal error. Please contact the website administrator by other means to notify about this issue
But in fact, the email is sent and received successfully.
- Error in strace log:
CONFIG_TEXT: PHP Fatal error: Uncaught exception 'Zend_Mail_Transport_Exception' with message 'Unable to send mail. mail(/var/tmp/php.mail.log): failed to open stream: Permission denied' in /var/www/vhosts/example.com/httpdocs/includes/Zend/Mail/Transport/Sendmail.php:
Cause
Incorrect permissions on/var/tmp/php.mail.log
file.
Resolution
Note: if you don't have root access to Plesk server via SSH, contact your hosting provider regarding the issue
- Login to Plesk server over SSH
- Set the correct permissions on
/var/tmp/php.mail.log
file:# chmod 664 /var/tmp/php.mail.log
# ls -la /var/tmp/php.mail.log
-rw-rw-r-- 1 root root 104306 Sep 5 22:47 /var/tmp/php.mail.log
Comments
2 comments
Hi there,
I have the same problem but with obsidian version and in windows server environment.
Thanks for help!
hi @Hugo Velasco,
If error is exactly the same "Your message could not be sent due to an internal error. Please contact the website administrator by other means to notify about this issue" and you are using a Web Presence Builder for your site, issue needs to be investigated. Please submit a support request to Plesk directly or to a reseller, depending on where the license was purchased.
If the error is slightly different and you are not using Web Presence Builder, send me the error message.
Please sign in to leave a comment.