Creating new account following message comes up to requester:
Warning: mail(): Policy restriction in effect. The fifth parameter is disabled on this system in DefaultMailSystem->mail() (line 77 of /customers/X.x/X.x/httpd.www/modules/system/system.mail.inc).
* Warning: mail(): Policy restriction in effect. The fifth parameter is disabled on this system in DefaultMailSystem->mail() (line 77 of /customers/X.x/X.x/httpd.www/modules/system/system.mail.inc).
Comments
Comment #1
cord1 commentedSolution for me:
modules/system/system.mail.inc line 74
remove comma behind $mail_headers
line 76 comment out '-f ' . $message['Return-Path']
I get no more warnings.
Comment #2
berdirDo you know what kind of "policy" that is?
Is this is shared host?
Is there some sort of php security extension running? I never heard of such a feature in php itself, you can block functions, sure, but specific arguments of functions?
Comment #3
bfroehle commentedFrom http://us.php.net/manual/en/function.mail.php
From http://drupal.org/requirements
Guess we should add a note that safe mode also messes up sending users mail.
Comment #4
MrMagoo commentedchord1: Did you remove the comma at $mail_body,? and that line 76 your mention? What did you do? Dont understand what you wrote? Im getting the same information about safe mode when i created a new user
Comment #5
gyurma commentedI have same problem using drupal commerce.
on my host in a small example php file the ini_get('safe_mode') returns false, and I really can send mail via mail() with 5 arguments, but the drupal commerce writes this policy warning.
I have no idea how the mail() function gets confused...
The native drupal mail function checks for this safe_mode stuff, and still gets this error.
Actually the mails seem to be sent OK.
Comment #6
th_tushar commentedLooks like this issue do not exists anymore. Marking it as closed.