- Adds SMTP mailer + tests

- Adjusts Mailer router
- Changes sender/recipient email in tests
- Adds SwiftMailer composer dependency
This commit is contained in:
MrCasual
2015-10-07 15:52:51 -04:00
parent 14160f92f3
commit 08822bd745
9 changed files with 218 additions and 36 deletions

View File

@@ -9,7 +9,7 @@ class SendGridCest {
'type' => 'API',
'api_key' => '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'
);
$this->fromEmail = 'do-not-reply@mailpoet.com';
$this->fromEmail = 'staff@mailpoet.com';
$this->fromName = 'Sender';
$this->mailer = new SendGrid($this->settings['api_key'], $this->fromEmail, $this->fromName);
$this->mailer->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';