Author Topic: Native emails not working SAFE MODE bug  (Read 1766 times)

OzzyCzech

  • Newbie
  • *
  • Posts: 1
    • View Profile
Native emails not working SAFE MODE bug
« on: February 08, 2010, 07:37:25 am »
Error message from log:

#1 ERROR: Error: mail() [<a href='function.mail'>function.mail</a>]: SAFE MODE Restriction in effect.  The fifth parameter is disabled in SAFE MODE in 'library/swift/lib/Swift/Stream/MailProxy.php' on line 374 (error code: 2)

Remove in library/swift/lib/Swift/Stream/MailProxy.php last parameter from mail

$sent = @mail(
        implode(', ', $this->getTo($string)),
        $this->getSubject($string),
        $this->getBody($string),
        $this->getHeaders($string));//,
        //$extra);