How to add Cc and Bcc in Amazon SES SendRawEmail?

前端 未结 1 1264
一个人的身影
一个人的身影 2020-12-18 02:06

How to add the list of Cc and Bcc recipients in sendrawemail (java). I\'m just adding all the recipients to one list and sending the mail. There is no separate method to set

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 02:17

    Regarding SendRawEmail, you should be able to differentiate To, Cc, and Bcc destinations by setting them in your raw message headers. If you don't explicitly specify destinations in the request object, the headers will be checked instead. If you do, the headers won't be checked.

    Here's a great example regarding this problem that JustinC@AWS shared on the AWS forums:

       Destinations: (empty)
       To: A@example.com
       Cc: B@example.com
       Bcc: C@example.com
    

    The above message will be sent to all three of A@, B@, C@example.com. In contrast, if you send the following input:

       Destinations: A@example.com
       To: A@example.com
       Cc: B@example.com
       Bcc: C@example.com
    

    That message will be delivered only to A@example.com.

    0 讨论(0)
提交回复
热议问题