전자 메일을 보내려면 Amazon SES를 사용하고 있습니다. Amazon SES를 사용하여 C#으로 첨부 파일이있는 이메일을 보내는 방법은 무엇입니까?Amazon SES를 사용하여 C#의 첨부 파일로 전자 메일 보내기
코드 : 아마존 SES 특별한
AmazonSimpleEmailServiceConfig amConfig = new AmazonSimpleEmailServiceConfig();
amConfig.UseSecureStringForAwsSecretKey = false;
AmazonSimpleEmailServiceClient amzClient = new AmazonSimpleEmailServiceClient("username", "password", amConfig);
ArrayList to = new ArrayList();
to.Add("[email protected]");
Destination dest = new Destination();
dest.WithBccAddresses((string[])to.ToArray(typeof(string)));
string body = "INSERT HTML BODY HERE";
string subject = "INSERT EMAIL SUBJECT HERE";
Body bdy = new Body();
bdy.Html = new Amazon.SimpleEmail.Model.Content(body);
Amazon.SimpleEmail.Model.Content title = new Amazon.SimpleEmail.Model.Content(subject);
Message message = new Message(title, bdy);
SendEmailRequest ser = new SendEmailRequest("[email protected]", dest, message);
SendEmailResponse seResponse = amzClient.SendEmail(ser);
SendEmailResult seResult = seResponse.SendEmailResult;
CES에서 다른 전자 메일을 보내는 것과 같은 방법으로 SES로 전자 메일을 보냅니다. C# 코드, 특정 질문 및 코드에서받을 수있는 특정 오류를 게시해야합니다. – paulsm4
감사합니다. 첨부 파일이있는 이메일을 보내려는 코드 – sharmila