fixed sending issue of confirmation email

This commit is contained in:
Jonathan Labreuille
2016-02-26 11:41:22 +01:00
parent 14fe333678
commit 3622bc9fcb

View File

@ -139,16 +139,19 @@ class Subscriber extends Model {
$subscriber = $this->asArray(); $subscriber = $this->asArray();
// set from // set from
$from = (!empty($signup_confirmation['from']) $from = (
? $signup_confirmation['from'] !empty($signup_confirmation['from'])
: false && !empty($signup_confirmation['email'])
); ) ? $signup_confirmation['from']
: false;
// set reply to // set reply to
$reply_to = (!empty($signup_confirmation['reply_to']) $reply_to = (
? $signup_confirmation['reply_to'] !empty($signup_confirmation['reply_to'])
: false && !empty($signup_confirmation['reply_to'])
); ) ? $signup_confirmation['reply_to']
: false;
// send email // send email
$mailer = new Mailer( $mailer = new Mailer(
@ -156,10 +159,6 @@ class Subscriber extends Model {
$from, $from,
$reply_to $reply_to
); );
print '<pre>';
print_r($mailer);
print '</pre>';
exit();
return $mailer->send($email, $subscriber); return $mailer->send($email, $subscriber);
} }
return false; return false;