Permalink
Browse files

Use Email setters

  • Loading branch information...
michael-e committed Jan 4, 2016
1 parent 8c77e14 commit 132f60b3ccaf4aa2d82a617a30808ac8056261ea
Showing with 5 additions and 4 deletions.
  1. +5 −4 content/content.login.php
@@ -162,13 +162,14 @@ private function __sendEmail()
$email->setFrom($emailSettings['from_address'], $emailSettings['from_name']);
}
$email->recipients = $author['email'];
$email->subject = __('Unban IP link');
$email->text_plain =
$email->setRecipients($author['email']);
$email->setSubject(__('Unban IP link'));
$email->setTextPlain(
__('Please follow this link to unban your IP: ') .
SYMPHONY_URL . ABF::UNBAND_LINK . $failure[0]->Hash . '/' . PHP_EOL .
__('If you do not remember your password, follow the "forgot password" link on the login page.') . PHP_EOL .
__('The Symphony Team');
__('The Symphony Team')
);
// set error flag
$this->_email_sent = $email->validate() && $email->send();

0 comments on commit 132f60b

Please sign in to comment.