public class AWSJavaMailTransport
extends Transport
This transport implementation only accepts MIME encoded messages (see MimeMessage class) and RFC822 E-mail addresses (see InternetAddress class).
Modifier and Type | Field and Description |
---|---|
static String |
AWS_ACCESS_KEY_PROPERTY |
static String |
AWS_EMAIL_SERVICE_ENDPOINT_PROPERTY |
static String |
AWS_SECRET_KEY_PROPERTY |
Constructor and Description |
---|
AWSJavaMailTransport(Session session,
URLName urlname) |
Modifier and Type | Method and Description |
---|---|
<X extends AmazonWebServiceRequest> |
appendUserAgent(X request,
String userAgent) |
void |
close() |
String |
getLastMessageId()
The unique message identifier ot the last message sent by
sendMessage |
void |
sendMessage(Message msg,
Address[] addresses)
Sends a MIME message through Amazon's E-mail Service with the specified
recipients.
|
public static final String AWS_EMAIL_SERVICE_ENDPOINT_PROPERTY
public static final String AWS_SECRET_KEY_PROPERTY
public static final String AWS_ACCESS_KEY_PROPERTY
public AWSJavaMailTransport(Session session, URLName urlname)
public void sendMessage(Message msg, Address[] addresses) throws MessagingException, SendFailedException
msg
- A Mime type e-mail message to be sentaddresses
- Additional e-mail addresses (RFC-822) to be included in the
messageMessagingException
SendFailedException
public void close() throws MessagingException
MessagingException
public String getLastMessageId()
The unique message identifier ot the last message sent by sendMessage
sendMessage
action.public <X extends AmazonWebServiceRequest> X appendUserAgent(X request, String userAgent)