• Hello all.

    I’ve searched on this site, been to the Codex site (which says that there are no known problems with (php) safe mode and WordPress), and I’ve also tried Google. No answer. My problem is as follows:
    After having installed WordPress (which runs like a dream, by the way!) I have one very annoying problem. When users try to register they get the following error:
    “Warning: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in wp-includes/functions.php on line 1579”
    This is no good. No email gets sent out (because of this error I presume), and therefore users cannot obtain their password (plus, it doesn’t look all that professional! :-)). Now, my web hotel HAS enabled safe mode, but as I’ve heard everywhere there should be no problems with safe mode.
    I’m running 1.5 gamma.

    Someone please give me a clue as to what i should do. Please? ??

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • I tracked down the problem to the use of the mail() function in wp_mail() in wp-includes/functions.php

    According to https://www.php.net/function.mail the optional fifth argument to mail(), which is named $more in wp_mail(), is not allowed in safe mode. If wp_mail checked for safe mode and left out that argument to mail(), or just calls mail() without the $more argument whan $more == ”, then everything seems to work. I’ve been blogging about issues and workarounds getting WordPress to work in safemode.

Viewing 1 replies (of 1 total)
  • The topic ‘Safe mode and registration mail’ is closed to new replies.