如何将目标设置为SendRawEmailRequest

时间:2017-05-22 07:47:25

标签: java amazon-web-services amazon-ses

当我添加单个目标电子邮件时,它工作正常,但当我尝试向集合中添加更多电子邮件地址时,它会引发异常  Received error response: com.amazonaws.services.simpleemail.model.AmazonSimpleEmailServiceException: Local address contains illegal character (Service: AmazonSimpleEmailService; Status Code: 400; Error Code: InvalidParameterValue; Request ID:

这是我的代码

rawEmailRequest.setDestinations(Arrays.asList("To: some_email@hello.io",
                "CC: some_email@hello.io",
                "BCC: some_email@hello.io",
                "BCC: some_email@hello.io"));

0 个答案:

没有答案