使用sendRawEmail()
通过Amazon SES成功发送电子邮件时,响应$result
的{{1}}被截断:
MessageId
我收到的实际电子邮件中的完整[private] data => [
'MessageId' => '26f669f3-9ca0-4a83-8202-7a0c00a72bba','@metadata' => [
'statusCode' => (int) 200,'effectiveUri' => 'https://email.us-east-1.amazonaws.com','headers' => [
'x-amzn-requestid' => '0edb8492-13c5-497b-b572-2e10a8b3f653','content-type' => 'text/xml','content-length' => '338','date' => 'Fri,15 Nov 2019 10:00:00 GMT'
],'transferStats' => [
'http' => [
(int) 0 => []
]
]
]
]
[private] monitoringEvents => []
是MessageId
-ID本身匹配,但是请注意,API响应中缺少26f669f3-9ca0-4a83-8202-7a0c00a72bba@email.amazonses.com
。我该如何重建它?
自2015年以来,该格式至少已更改过一次-previously it included the region,e.g. @eu-west-1.amazonses.com
,因此@email.amazonses.com
硬编码似乎不是一个好选择(因为如果再次更改该怎么办)。
请告知