Article ID: 119386, created on Dec 27, 2013, last review on May 11, 2014

  • Applies to:
  • Plesk 11.5 for Linux


Sending a message from Web Presence Builder "contact form" fails with the below error:

<b>Fatal error</b>:  Uncaught exception 'Zend_Mail_Transport_Exception' with message 'Unable to send mail. mail(/var/www/vhosts/domain.tld/statistics/logs/mail.log) [&lt;a href='function.mail'&gt;function.mail&lt;/a&gt;]: failed to open stream: Permission denied' in /var/www/vhosts/domain.tld/httpdocs/addon-domain.tld/includes/Zend/Mail/Transport/Sendmail.php:137


The custom mail log file is set in the php settings. And there is no required permissions for php process to write logs in the log file. As a result the error message can appear when message is sent.


Check php configuration file 'php.ini' for the required domain. If the following option is configured it is required to check permissions for this log file.

mail.log = /var/www/vhosts/system/domain.tld/logs/mail.log

The correct permissions for this file can be seen from the following line:

# ls -la /var/www/vhosts/system/domain.tld/logs/mail.log
-rw-rw-r-- 2 root psacln 118431 Dec  6 12:56 /var/www/vhosts/system/domain.tld/logs/mail.log

In order to set these permissions following commands can be used:

chmod g+w /var/www/vhosts/system/domain.tld/logs/mail.log
chgrp psacln /var/www/vhosts/system/domain.tld/logs/mail.log

Another solution of this issue is to comment or remove the following line from the php configuration file 'php.ini'.

mail.log = /var/www/vhosts/system/domain.tld/logs/mail.log

Search Words

Ошибка во время отправки письма

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article
Save as PDF