mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10558 from creative-commoners/pulls/5/broken-builds
This commit is contained in:
commit
e11216d8ea
@ -41,7 +41,12 @@ class TestMailer implements MailerInterface
|
||||
/** @var Email $email */
|
||||
$email = $message;
|
||||
$this->dispatchEvent($email, $envelope);
|
||||
$this->emailsSent[] = [
|
||||
$this->emailsSent[] = $this->createData($email);
|
||||
}
|
||||
|
||||
protected function createData(Email $email): array
|
||||
{
|
||||
return [
|
||||
'Type' => $email->getHtmlBody() ? 'html' : 'plain',
|
||||
'To' => $this->convertAddressesToString($email->getTo()),
|
||||
'From' => $this->convertAddressesToString($email->getFrom()),
|
||||
|
Loading…
Reference in New Issue
Block a user