$mail->
subject('Hello!'
) ->
to(new Address('saif.gmati@symfony.com', 'Saif Eddin'
)) ->
cc(new Address('jeremy@derusse.com', 'Jérémy'
)) ->
from(new Address('fabpot@symfony.com', 'Fabién'
)) ->
text('Hello There!'
) ->
html('<b>Hello There!</b>'
) ->
replyTo(new Address('replyto-1@example.com'
),
new Address('replyto-2@example.com'
)) ->
returnPath(new Address('bounces@example.com'
));
$mail->
getHeaders()->
addTextHeader('X-SES-CONFIGURATION-SET', 'aws-configuration-set-name'
);
$mail->
getHeaders()->
addTextHeader('X-SES-SOURCE-ARN', 'aws-source-arn'
);
$mail->
getHeaders()->
add(new MetadataHeader('tagName1', 'tag Value1'
));
$mail->
getHeaders()->
add(new MetadataHeader('tagName2', 'tag Value2'
));
$message =
$transport->
send($mail);
$this->
assertSame('foobar',
$message->
getMessageId());
} public function testSendThrowsForErrorResponse() { $client =
new MockHttpClient(function Dstring
$method, string
$url, array
$options): ResponseInterface
{ $json =
json_encode([