Jump to content

Warning: mail(/var/log/phpmail.log): failed to open stream: permission denied in MailSend.php


Recommended Posts

Hello,

 I am having this warning when on contact us page. 

Warning: mail(/var/log/phpmail.log): failed to open stream: permission denied in  /home/xxx/public_html/tools/swift/Swift/plugin/MailSend.php on line 160

 

Everything is working fine. When someone submits a contact form, it sent successfully, i get notification email, sender get confirmation email that message has been sent successfully.

So i don't feel anything wrong but this warning always appears when someone submits contact us from. this warning appears on the top of the page on message successfully sent page.

I have attached a screenshot that can explain better then my english :P 

 

Let me know please what about is this warning ? If it is not any major warning or it would not make any issue in future, let me know where can i turn off these php warnings or errors . I did turned on the php errors myself but now i forgot where i had done that.

 

Sorry for bad english, i hope you can understand what i tried to explain.

Looking forward to kind response.

post-621323-0-54783500-1395370480_thumb.jpg

Link to comment
Share on other sites

Open-up tools/swift/Swift/plugin/MailSend.php and change:

 

if (!ini_get("safe_mode")) $success = mail($to, $subject, $message, $headers, $params);
to:

 

if (!ini_get("safe_mode")) $success = @mail($to, $subject, $message, $headers, $params);
Link to comment
Share on other sites

×
×
  • Create New...