|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.simpleemail.model.SendEmailRequest
public class 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.
IMPORTANT: You can only send email from verified email addresses and domains. If you have not requested production access to Amazon SES, 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.
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 .
AmazonSimpleEmailService.sendEmail(SendEmailRequest)
,
Serialized FormConstructor Summary | |
---|---|
SendEmailRequest()
Default constructor for a new SendEmailRequest object. |
|
SendEmailRequest(java.lang.String source,
Destination destination,
Message message)
Constructs a new SendEmailRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Destination |
getDestination()
The destination for this email, composed of To:, CC:, and BCC: fields. |
Message |
getMessage()
The message to be sent. |
java.util.List<java.lang.String> |
getReplyToAddresses()
The reply-to email address(es) for the message. |
java.lang.String |
getReturnPath()
The email address to which bounce notifications are to be forwarded. |
java.lang.String |
getSource()
The identity's email address. |
int |
hashCode()
|
void |
setDestination(Destination destination)
The destination for this email, composed of To:, CC:, and BCC: fields. |
void |
setMessage(Message message)
The message to be sent. |
void |
setReplyToAddresses(java.util.Collection<java.lang.String> replyToAddresses)
The reply-to email address(es) for the message. |
void |
setReturnPath(java.lang.String returnPath)
The email address to which bounce notifications are to be forwarded. |
void |
setSource(java.lang.String source)
The identity's email address. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SendEmailRequest |
withDestination(Destination destination)
The destination for this email, composed of To:, CC:, and BCC: fields. |
SendEmailRequest |
withMessage(Message message)
The message to be sent. |
SendEmailRequest |
withReplyToAddresses(java.util.Collection<java.lang.String> replyToAddresses)
The reply-to email address(es) for the message. |
SendEmailRequest |
withReplyToAddresses(java.lang.String... replyToAddresses)
The reply-to email address(es) for the message. |
SendEmailRequest |
withReturnPath(java.lang.String returnPath)
The email address to which bounce notifications are to be forwarded. |
SendEmailRequest |
withSource(java.lang.String source)
The identity's email address. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SendEmailRequest()
public SendEmailRequest(java.lang.String source, Destination destination, Message message)
source
- The identity's email address. 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.
destination
- The destination for this email, composed of To:,
CC:, and BCC: fields.message
- The message to be sent.Method Detail |
---|
public java.lang.String getSource()
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.
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.
public void setSource(java.lang.String source)
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.
source
- The identity's email address. 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.
public SendEmailRequest withSource(java.lang.String source)
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.
Returns a reference to this object so that method calls can be chained together.
source
- The identity's email address. 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.
public Destination getDestination()
public void setDestination(Destination destination)
destination
- The destination for this email, composed of To:, CC:, and BCC: fields.public SendEmailRequest withDestination(Destination destination)
Returns a reference to this object so that method calls can be chained together.
destination
- The destination for this email, composed of To:, CC:, and BCC: fields.
public Message getMessage()
public void setMessage(Message message)
message
- The message to be sent.public SendEmailRequest withMessage(Message message)
Returns a reference to this object so that method calls can be chained together.
message
- The message to be sent.
public java.util.List<java.lang.String> getReplyToAddresses()
public void setReplyToAddresses(java.util.Collection<java.lang.String> replyToAddresses)
replyToAddresses
- The reply-to email address(es) for the message. If the recipient
replies to the message, each reply-to address will receive the reply.public SendEmailRequest withReplyToAddresses(java.lang.String... replyToAddresses)
Returns a reference to this object so that method calls can be chained together.
replyToAddresses
- The reply-to email address(es) for the message. If the recipient
replies to the message, each reply-to address will receive the reply.
public SendEmailRequest withReplyToAddresses(java.util.Collection<java.lang.String> replyToAddresses)
Returns a reference to this object so that method calls can be chained together.
replyToAddresses
- The reply-to email address(es) for the message. If the recipient
replies to the message, each reply-to address will receive the reply.
public java.lang.String getReturnPath()
ReturnPath
parameter.
ReturnPath
parameter.public void setReturnPath(java.lang.String returnPath)
ReturnPath
parameter.
returnPath
- The email address to which bounce notifications are to be forwarded.
If the message cannot be delivered to the recipient, then an error
message will be returned from the recipient's ISP; this message will
then be forwarded to the email address specified by the
ReturnPath
parameter.public SendEmailRequest withReturnPath(java.lang.String returnPath)
ReturnPath
parameter.
Returns a reference to this object so that method calls can be chained together.
returnPath
- The email address to which bounce notifications are to be forwarded.
If the message cannot be delivered to the recipient, then an error
message will be returned from the recipient's ISP; this message will
then be forwarded to the email address specified by the
ReturnPath
parameter.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |