Added missing quotes to sendDeleteAccount as well

Fixed missing starting chevron in "Error-To" header
This commit is contained in:
Nick Mueller
2017-02-17 08:57:51 +01:00
parent e5c5781953
commit 60632e2cab

View File

@@ -22,7 +22,7 @@ class MailController extends \SMTP{
parent::__construct($host,$port,$scheme,$user,$pw);
// error handling
$this->set('Errors-to', '' . Controller::getEnvironmentData('SMTP_ERROR') . '>');
$this->set('Errors-to', '<' . Controller::getEnvironmentData('SMTP_ERROR') . '>');
$this->set('MIME-Version', '1.0');
$this->set('Content-Type', 'text/html; charset=ISO-8859-1');
}
@@ -35,7 +35,7 @@ class MailController extends \SMTP{
*/
public function sendDeleteAccount($to, $msg){
$this->set('To', '<' . $to . '>');
$this->set('From', 'Pathfinder <' . Controller::getEnvironmentData('SMTP_FROM') . '>');
$this->set('From', '"Pathfinder" <' . Controller::getEnvironmentData('SMTP_FROM') . '>');
$this->set('Subject', 'Account deleted');
$status = $this->send($msg);