C# Class Amazon.SimpleEmail.Model.SendEmailRequest

Container for the parameters to the SendEmail operation. Composes an email message based on input data, and then immediately queues the message for sending.

There are several important points to know about SendEmail:

  • You can only send email from verified email addresses and domains; otherwise, you will get an "Email address not verified" error. If your account is still in the Amazon SES sandbox, you must also verify every recipient email address except for the recipients provided by the Amazon SES mailbox simulator. For more information, go to the Amazon SES Developer Guide.

  • The total size of the message cannot exceed 10 MB. This includes any attachments that are part of the message.

  • Amazon SES has a limit on the total number of recipients per message. The combined number of To:, CC: and BCC: email addresses cannot exceed 50. If you need to send an email message to a larger audience, you can divide your recipient list into groups of 50 or fewer, and then call Amazon SES repeatedly to send the message to each group.

  • For every message that you send, the total number of recipients (To:, CC: and BCC:) is counted against your sending quota - the maximum number of emails you can send in a 24-hour period. For information about your sending quota, go to the Amazon SES Developer Guide.

Inheritance: AmazonSimpleEmailServiceRequest
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
SendEmailRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

SendEmailRequest ( string source, Destination destination, Message message ) : System

Instantiates SendEmailRequest with the parameterized properties

Private Methods

Method Description
IsSetConfigurationSetName ( ) : bool
IsSetDestination ( ) : bool
IsSetMessage ( ) : bool
IsSetReplyToAddresses ( ) : bool
IsSetReturnPath ( ) : bool
IsSetReturnPathArn ( ) : bool
IsSetSource ( ) : bool
IsSetSourceArn ( ) : bool
IsSetTags ( ) : bool

Method Details

SendEmailRequest() public method

Empty constructor used to set properties independently even when a simple constructor is available
public SendEmailRequest ( ) : System
return System

SendEmailRequest() public method

Instantiates SendEmailRequest with the parameterized properties
public SendEmailRequest ( string source, Destination destination, Message message ) : System
source string The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide. If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the SourceArn parameter. For more information about sending authorization, see the Amazon SES Developer Guide. In all cases, the email address 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.
destination Destination The destination for this email, composed of To:, CC:, and BCC: fields.
message Message The message to be sent.
return System