File Coverage

blib/lib/Paws/SES/SendEmail.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::SES::SendEmail;
3 1     1   533 use Moose;
  1     2   3  
  1         8  
  2         1138  
  2         7  
  2         17  
4             has ConfigurationSetName => (is => 'ro', isa => 'Str');
5             has Destination => (is => 'ro', isa => 'Paws::SES::Destination', required => 1);
6             has Message => (is => 'ro', isa => 'Paws::SES::Message', required => 1);
7             has ReplyToAddresses => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
8             has ReturnPath => (is => 'ro', isa => 'Str');
9             has ReturnPathArn => (is => 'ro', isa => 'Str');
10             has Source => (is => 'ro', isa => 'Str', required => 1);
11             has SourceArn => (is => 'ro', isa => 'Str');
12             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::SES::MessageTag]');
13              
14 1     1   6664 use MooseX::ClassAttribute;
  1     2   2  
  1         11  
  2         13600  
  2         4  
  2         15  
15              
16             class_has _api_call => (isa => 'Str', is => 'ro', default => 'SendEmail');
17             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SES::SendEmailResponse');
18             class_has _result_key => (isa => 'Str', is => 'ro', default => 'SendEmailResult');
19             1;
20              
21             ### main pod documentation begin ###
22              
23             =head1 NAME
24              
25             Paws::SES::SendEmail - Arguments for method SendEmail on Paws::SES
26              
27             =head1 DESCRIPTION
28              
29             This class represents the parameters used for calling the method SendEmail on the
30             Amazon Simple Email Service service. Use the attributes of this class
31             as arguments to method SendEmail.
32              
33             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendEmail.
34              
35             As an example:
36              
37             $service_obj->SendEmail(Att1 => $value1, Att2 => $value2, ...);
38              
39             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.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 ConfigurationSetName => Str
45              
46             The name of the configuration set to use when you send an email using
47             C<SendEmail>.
48              
49              
50              
51             =head2 B<REQUIRED> Destination => L<Paws::SES::Destination>
52              
53             The destination for this email, composed of To:, CC:, and BCC: fields.
54              
55              
56              
57             =head2 B<REQUIRED> Message => L<Paws::SES::Message>
58              
59             The message to be sent.
60              
61              
62              
63             =head2 ReplyToAddresses => ArrayRef[Str|Undef]
64              
65             The reply-to email address(es) for the message. If the recipient
66             replies to the message, each reply-to address will receive the reply.
67              
68              
69              
70             =head2 ReturnPath => Str
71              
72             The email address to which bounces and complaints are to be forwarded
73             when feedback forwarding is enabled. If the message cannot be delivered
74             to the recipient, then an error message will be returned from the
75             recipient's ISP; this message will then be forwarded to the email
76             address specified by the C<ReturnPath> parameter. The C<ReturnPath>
77             parameter is never overwritten. This email address must be either
78             individually verified with Amazon SES, or from a domain that has been
79             verified with Amazon SES.
80              
81              
82              
83             =head2 ReturnPathArn => Str
84              
85             This parameter is used only for sending authorization. It is the ARN of
86             the identity that is associated with the sending authorization policy
87             that permits you to use the email address specified in the
88             C<ReturnPath> parameter.
89              
90             For example, if the owner of C<example.com> (which has ARN
91             C<arn:aws:ses:us-east-1:123456789012:identity/example.com>) attaches a
92             policy to it that authorizes you to use C<feedback@example.com>, then
93             you would specify the C<ReturnPathArn> to be
94             C<arn:aws:ses:us-east-1:123456789012:identity/example.com>, and the
95             C<ReturnPath> to be C<feedback@example.com>.
96              
97             For more information about sending authorization, see the Amazon SES
98             Developer Guide.
99              
100              
101              
102             =head2 B<REQUIRED> Source => Str
103              
104             The email address that is sending the email. This email address must be
105             either individually verified with Amazon SES, or from a domain that has
106             been verified with Amazon SES. For information about verifying
107             identities, see the Amazon SES Developer Guide.
108              
109             If you are sending on behalf of another user and have been permitted to
110             do so by a sending authorization policy, then you must also specify the
111             C<SourceArn> parameter. For more information about sending
112             authorization, see the Amazon SES Developer Guide.
113              
114             In all cases, the email address must be 7-bit ASCII. If the text must
115             contain any other characters, then you must use MIME encoded-word
116             syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax
117             uses the following form: C<=?charset?encoding?encoded-text?=>. For more
118             information, see RFC 2047.
119              
120              
121              
122             =head2 SourceArn => Str
123              
124             This parameter is used only for sending authorization. It is the ARN of
125             the identity that is associated with the sending authorization policy
126             that permits you to send for the email address specified in the
127             C<Source> parameter.
128              
129             For example, if the owner of C<example.com> (which has ARN
130             C<arn:aws:ses:us-east-1:123456789012:identity/example.com>) attaches a
131             policy to it that authorizes you to send from C<user@example.com>, then
132             you would specify the C<SourceArn> to be
133             C<arn:aws:ses:us-east-1:123456789012:identity/example.com>, and the
134             C<Source> to be C<user@example.com>.
135              
136             For more information about sending authorization, see the Amazon SES
137             Developer Guide.
138              
139              
140              
141             =head2 Tags => ArrayRef[L<Paws::SES::MessageTag>]
142              
143             A list of tags, in the form of name/value pairs, to apply to an email
144             that you send using C<SendEmail>. Tags correspond to characteristics of
145             the email that you define, so that you can publish email sending
146             events.
147              
148              
149              
150              
151             =head1 SEE ALSO
152              
153             This class forms part of L<Paws>, documenting arguments for method SendEmail in L<Paws::SES>
154              
155             =head1 BUGS and CONTRIBUTIONS
156              
157             The source code is located here: https://github.com/pplu/aws-sdk-perl
158              
159             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
160              
161             =cut
162