mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 02:43:32 +03:00
Suppress the output of internal PHP errors when sending mails as there's custom handling for that
This commit is contained in:
parent
ae2fc9ef99
commit
a00291080a
1 changed files with 2 additions and 2 deletions
|
@ -1862,12 +1862,12 @@ class CI_Email {
|
||||||
|
|
||||||
if ( ! $this->_validate_email_for_shell($from))
|
if ( ! $this->_validate_email_for_shell($from))
|
||||||
{
|
{
|
||||||
return mail($this->_recipients, $this->_subject, $this->_finalbody, $this->_header_str);
|
return @mail($this->_recipients, $this->_subject, $this->_finalbody, $this->_header_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
// most documentation of sendmail using the "-f" flag lacks a space after it, however
|
// most documentation of sendmail using the "-f" flag lacks a space after it, however
|
||||||
// we've encountered servers that seem to require it to be in place.
|
// we've encountered servers that seem to require it to be in place.
|
||||||
return mail($this->_recipients, $this->_subject, $this->_finalbody, $this->_header_str, '-f '.$from);
|
return @mail($this->_recipients, $this->_subject, $this->_finalbody, $this->_header_str, '-f '.$from);
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue