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

marcingy’s picture

Status: Active » Postponed (maintainer needs more info)

More information about your server configuration is required

marcingy’s picture

Priority: Critical » Normal

And given that the send works this seems like normal to me for now

ritsd’s picture

What information of the server do you exactly need?
I have no experience what so ever.

marcingy’s picture

You 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.

ritsd’s picture

Here 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.

damien tournoud’s picture

Category: bug » support

That's a configuration issue. This /var/log/php_mail.log file is apparently written by PHP, would should have a reference to it somewhere in your configuration of PHP.

ritsd’s picture

Now 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?

damien tournoud’s picture

@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.

ritsd’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

The 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!