'response_headers' =>
['x-message-id' => 'test_message_id'
],
]);
});
$transport =
new MailerSendApiTransport('ACCESS_KEY',
$client);
$mail =
new Email();
$mail->
subject('Test subject'
) ->
to(new Address('test_to@example.com', 'Test to name'
)) ->
from(new Address('test_from@example.com', 'Test from name'
)) ->
addCc('test_cc@example.com'
) ->
addBcc('test_bcc@example.com'
) ->
addReplyTo('test_reply_to@example.com'
) ->
text('Lorem ipsum.'
) ->
html('<html><body><p>Lorem ipsum.</p></body></html>'
);
$message =
$transport->
send($mail);
$this->
assertSame('test_message_id',
$message->
getMessageId());
} public function testSendEmailWithAttachment() {