I am using AWS Pinpoint in my console application. I am able to send SimpleEmail through it. Something like this:
var sendRequest = new SendMessagesRequest
{
ApplicationId = appId,
MessageRequest = new MessageRequest
{
Addresses = new Dictionary<string, AddressConfiguration>
{
{
demomail,
new AddressConfiguration
{
ChannelType=ChannelType.EMAIL
}
}
},
MessageConfiguration = new DirectMessageConfiguration
{
EmailMessage = new EmailMessage
{
SimpleEmail = new SimpleEmail
{
HtmlPart = new SimpleEmailPart
{
Charset = "UTF-8",
Data = @"<html><head></head><body><h1>Amazon Pinpoint Email Test (AWS SDK for .NET)</h1></body></html>"
},
TextPart = new SimpleEmailPart
{
Charset = "UTF-8",
Data = @"This email was sent using the Amazon Pinpoint API using the AWS SDK for .NET."
},
Subject = new SimpleEmailPart
{
Charset = "UTF-8",
Data = @"Test Mail"
}
}
}
}
}
};
But I want to include attachments in my email , for which I need to use RawEmail. But I can't find proper documentation for sending the email with pdf attached. Can anyone point me to it or help me out.
Pinpoint does not support attachments. For similar use case we have copied the attachement is AWS S3 and shared the link in the email to download the attachments.