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.
By default, the string must be 7-bit ASCII. If the text must contain any other characters,
then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string.
MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=
.
For more information, see RFC 2047.
Namespace: Amazon.SimpleEmail.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class Destination : Object
The Destination type exposes the following members
Name | Description | |
---|---|---|
Destination() | Empty constructor used to set properties independently even when a simple constructor is available | |
Destination(List<String>) |
Name | Type | Description | |
---|---|---|---|
BccAddresses | System.Collections.Generic.List<System.String> |
Gets and sets the property BccAddresses.
The BCC: field(s) of the message. |
|
CcAddresses | System.Collections.Generic.List<System.String> |
Gets and sets the property CcAddresses.
The CC: field(s) of the message. |
|
ToAddresses | System.Collections.Generic.List<System.String> |
Gets and sets the property ToAddresses.
The To: field(s) of the message. |
This example shows how to send an email.
var sesClient = new AmazonSimpleEmailServiceClient(); var dest = new Destination { ToAddresses = new List<string>() { "janedoe@example.com" }, CcAddresses = new List<string>() { "richarddoe@example.com" } }; var from = "johndoe@example.com"; var subject = new Content("You're invited to the meeting"); var body = new Body(new Content("Please join us Monday at 7:00 PM.")); var msg = new Message(subject, body); var request = new SendEmailRequest { Destination = dest, Message = msg, Source = from }; sesClient.SendEmail(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