Amazon SESを使用して電子メールを送信しています。 Amazon SESを使用してC#で添付ファイル付きのメールを送信するには?Amazon SESを使用してC#で添付ファイル付きの電子メールを送信
コード:Amazonで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