Using the contact form provided by the Drupal core system, the following error occurs:
Warning: mail(/var/log/php_mail.log) [function.mail]: failed to open stream: No such file or directory in DefaultMailSystem->mail() (line 76 of /home/villital/public_html/drupal/modules/system/system.mail.inc).
Warning: mail(/var/log/php_mail.log) [function.mail]: failed to open stream: No such file or directory in DefaultMailSystem->mail() (line 76 of /home/villital/public_html/drupal/modules/system/system.mail.inc).
Warning: mail(/var/log/php_mail.log) [function.mail]: failed to open stream: No such file or directory in DefaultMailSystem->mail() (line 76 of /home/villital/public_html/drupal/modules/system/system.mail.inc).
Nevertheless the emails are delivered correctlyto the user (Send yourself a copy) and to the email address of the website.
I found several issues regarding this problem but none of the provided solutions seems to work for me.
Comments
Comment #1
marcingy commentedMore information about your server configuration is required
Comment #2
marcingy commentedAnd given that the send works this seems like normal to me for now
Comment #3
ritsd commentedWhat information of the server do you exactly need?
I have no experience what so ever.
Comment #4
marcingy commentedYou can find more info here http://drupal.org/node/73179 - if you look at the bottom of the page you will see some information on the type of data required.
Comment #5
ritsd commentedHere is the information requested.
Operating System: Linux
Kernel Version: 2.6.38.6-sg4-nomm-nogrsec
Database: MySQL
Server: Localhost via UNIX socket
Serverversion: 5.0.91mm-log
Protocolversion: 10
Web server: cpsrvd 11.30.1.4
MySQL-client version: 4.1.22
PHP extension: mysql
Drupal: 7.7
Apache: 1.3.42
PHP: 5.2.5
OpenSSL: 0.9.8e-fips-rhel5
I hope this helps.
Comment #6
damien tournoud commentedThat's a configuration issue. This
/var/log/php_mail.logfile is apparently written by PHP, would should have a reference to it somewhere in your configuration of PHP.Comment #7
ritsd commentedNow you've lost me.
I have no clue what file I should open to add the reference (settings.php, default.settings.php or another one?).
And how do I set a reference in that file to the problem file name?
Comment #8
damien tournoud commented@ritsd: most likely you should contact the support team of your hosting provider. From the look of it, it is a system-wide issue, unrelated to Drupal.
Comment #9
ritsd commentedThe problem is solved.
As you suggested there was a small misconfiguration on the server.
The people of Siteground did a great job and now all works as expected.
Thanks for your support!