AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Namespace: Amazon.SimpleEmail.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class RawMessage : Object
The RawMessage type exposes the following members
Name | Description | |
---|---|---|
RawMessage() | Empty constructor used to set properties independently even when a simple constructor is available | |
RawMessage(MemoryStream) | Instantiates RawMessage with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
Data | System.IO.MemoryStream |
Gets and sets the property Data.
The raw data of the message. The client must ensure that the message format complies with Internet email standards regarding email header fields, MIME types, MIME encoding, and base64 encoding (if necessary). The To:, CC:, and BCC: headers in the raw message can contain a group list.
If you are using For more information, go to the Amazon SES Developer Guide. |
This example shows how to send a raw email.
// using System.IO; var sesClient = new AmazonSimpleEmailServiceClient(); var stream = new MemoryStream( Encoding.UTF8.GetBytes("From: johndoe@example.com\n" + "To: janedoe@example.com\n" + "Subject: You're invited to the meeting\n" + "Content-Type: text/plain\n\n" + "Please join us Monday at 7:00 PM.") ); var raw = new RawMessage { Data = stream }; var to = new List<string>() { "janedoe@example.com" }; var from = "johndoe@example.com"; var request = new SendRawEmailRequest { Destinations = to, RawMessage = raw, Source = from }; sesClient.SendRawEmail(request);
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8
.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8