MailDebug now also "works" with invalid Mail

Fixed Typo and Intendation
This commit is contained in:
Andreas Österreicher
2018-02-20 17:17:56 +01:00
parent 6830e5f51d
commit bd2318bd38
3 changed files with 141 additions and 139 deletions
+5 -3
View File
@@ -65,12 +65,14 @@ class MailLib
$recipient = $to;
$recipientCC = $cc;
$recipientBCC = $bcc;
if ($this->validateEmailAddress(MAIL_DEBUG))
if (defined('MAIL_DEBUG') && MAIL_DEBUG != '')
{
// if is it valid use it!!!
$recipient = MAIL_DEBUG;
$recipientCC = MAIL_DEBUG;
$recipientBCC = MAIL_DEBUG;
if ($recipientCC != '')
$recipientCC = MAIL_DEBUG;
if ($recipientBCC != '')
$recipientBCC = MAIL_DEBUG;
}
$this->ci->email->to($recipient);