NAME
Paws::SESv2::SendEmail - Arguments for method SendEmail on Paws::SESv2
DESCRIPTION
This class represents the parameters used for calling the method SendEmail on the Amazon Simple Email Service service. Use the attributes of this class as arguments to method SendEmail.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendEmail.
SYNOPSIS
my $email = Paws->service('SESv2');
my $SendEmailResponse = $email->SendEmail(
Content => {
Raw => {
Data => 'BlobRawMessageData',
}, # OPTIONAL
Simple => {
Body => {
Html => {
Data => 'MyMessageData',
Charset => 'MyCharset', # OPTIONAL
}, # OPTIONAL
Text => {
Data => 'MyMessageData',
Charset => 'MyCharset', # OPTIONAL
}, # OPTIONAL
},
Subject => {
Data => 'MyMessageData',
Charset => 'MyCharset', # OPTIONAL
}, # OPTIONAL
}, # OPTIONAL
Template => {
TemplateArn => 'MyAmazonResourceName', # OPTIONAL
TemplateData => 'MyEmailTemplateData', # max: 262144; OPTIONAL
TemplateName => 'MyEmailTemplateName', # min: 1; OPTIONAL
}, # OPTIONAL
},
ConfigurationSetName => 'MyConfigurationSetName', # OPTIONAL
Destination => {
BccAddresses => [ 'MyEmailAddress', ... ], # OPTIONAL
CcAddresses => [ 'MyEmailAddress', ... ], # OPTIONAL
ToAddresses => [ 'MyEmailAddress', ... ], # OPTIONAL
}, # OPTIONAL
EmailTags => [
{
Name => 'MyMessageTagName',
Value => 'MyMessageTagValue',
},
...
], # OPTIONAL
FeedbackForwardingEmailAddress => 'MyEmailAddress', # OPTIONAL
FeedbackForwardingEmailAddressIdentityArn =>
'MyAmazonResourceName', # OPTIONAL
FromEmailAddress => 'MyEmailAddress', # OPTIONAL
FromEmailAddressIdentityArn => 'MyAmazonResourceName', # OPTIONAL
ListManagementOptions => {
ContactListName => 'MyContactListName',
TopicName => 'MyTopicName', # OPTIONAL
}, # OPTIONAL
ReplyToAddresses => [ 'MyEmailAddress', ... ], # OPTIONAL
);
# Results:
my $MessageId = $SendEmailResponse->MessageId;
# Returns a L<Paws::SESv2::SendEmailResponse> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/email/SendEmail
ATTRIBUTES
ConfigurationSetName => Str
The name of the configuration set that you want to use when sending the email.
REQUIRED Content => Paws::SESv2::EmailContent
An object that contains the body of the message. You can send either a Simple message Raw message or a template Message.
Destination => Paws::SESv2::Destination
An object that contains the recipients of the email message.
EmailTags => ArrayRef[Paws::SESv2::MessageTag]
A list of tags, in the form of name/value pairs, to apply to an email that you send using the SendEmail
operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
FeedbackForwardingEmailAddress => Str
The address that you want bounce and complaint notifications to be sent to.
FeedbackForwardingEmailAddressIdentityArn => Str
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the FeedbackForwardingEmailAddress
parameter.
For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the FeedbackForwardingEmailAddressIdentityArn
to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress
to be feedback@example.com.
For more information about sending authorization, see the Amazon SES Developer Guide (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
FromEmailAddress => Str
The email address that you want to use as the "From" address for the email. The address that you specify has to be verified.
FromEmailAddressIdentityArn => Str
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the FromEmailAddress
parameter.
For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use sender@example.com, then you would specify the FromEmailAddressIdentityArn
to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FromEmailAddress
to be sender@example.com.
For more information about sending authorization, see the Amazon SES Developer Guide (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
For Raw emails, the FromEmailAddressIdentityArn
value overrides the X-SES-SOURCE-ARN and X-SES-FROM-ARN headers specified in raw email message content.
ListManagementOptions => Paws::SESv2::ListManagementOptions
An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to unsubscribe.
ReplyToAddresses => ArrayRef[Str|Undef]
The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.
SEE ALSO
This class forms part of Paws, documenting arguments for method SendEmail in Paws::SESv2
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues