Skip navigation links
A B C D E F G H I L M N O P R S T V 

A

addAttachment(String, byte[], String) - Method in class org.codemonkey.simplejavamail.Email
Adds an attachment to the email message and generates the necessary DataSource with the given byte data.
addAttachment(String, DataSource) - Method in class org.codemonkey.simplejavamail.Email
Overloaded method which sets an attachment on account of name and DataSource.
addAttachment(String, byte[], String) - Method in class org.codemonkey.simplejavamail.Email.Builder
Adds an attachment to the email message and generates the necessary DataSource with the given byte data.
addAttachment(String, DataSource) - Method in class org.codemonkey.simplejavamail.Email.Builder
Overloaded method which sets an attachment on account of name and DataSource.
addEmbeddedImage(String, byte[], String) - Method in class org.codemonkey.simplejavamail.Email
Adds an embedded image (attachment type) to the email message and generates the necessary DataSource with the given byte data.
addEmbeddedImage(String, DataSource) - Method in class org.codemonkey.simplejavamail.Email
Overloaded method which sets an embedded image on account of name and DataSource.
addHeader(String, Object) - Method in class org.codemonkey.simplejavamail.Email
Adds a header to the Email.headers list.
addHeader(String, Object) - Method in class org.codemonkey.simplejavamail.Email.Builder
Adds a header to the Email.Builder.headers list.
addRecipient(String, String, Message.RecipientType) - Method in class org.codemonkey.simplejavamail.Email
Adds a new Recipient to the list on account of name, address and recipient type (eg.
address - Variable in class org.codemonkey.simplejavamail.Recipient
 
allowDomainLiterals - Variable in class org.codemonkey.simplejavamail.EmailAddressValidationCriteria
 
allowQuotedIdentifiers - Variable in class org.codemonkey.simplejavamail.EmailAddressValidationCriteria
 
applyProperties(Properties) - Method in class org.codemonkey.simplejavamail.Mailer
Copies all property entries into the Session using Session.getProperties().
AttachmentResource - Class in org.codemonkey.simplejavamail
A named immutable email attachment information object.
AttachmentResource(String, DataSource) - Constructor for class org.codemonkey.simplejavamail.AttachmentResource
Constructor; initializes the attachment resource with a name and data.
attachments - Variable in class org.codemonkey.simplejavamail.Email
attachments - Variable in class org.codemonkey.simplejavamail.Email.Builder

B

bcc(String, String) - Method in class org.codemonkey.simplejavamail.Email.Builder
Adds a new Recipient to the list on account of name, address with recipient type Message.RecipientType.BCC.
bcc(Recipient) - Method in class org.codemonkey.simplejavamail.Email.Builder
Adds a new Recipient to the list on account of name, address with recipient type Message.RecipientType.BCC.
build() - Method in class org.codemonkey.simplejavamail.Email.Builder
 
Builder() - Constructor for class org.codemonkey.simplejavamail.Email.Builder
 
buildValidEmailPattern(EmailAddressValidationCriteria) - Static method in class org.codemonkey.simplejavamail.EmailValidationUtil
 

C

cc(String, String) - Method in class org.codemonkey.simplejavamail.Email.Builder
Adds a new Recipient to the list on account of name, address with recipient type Message.RecipientType.CC.
cc(Recipient) - Method in class org.codemonkey.simplejavamail.Email.Builder
Adds a new Recipient to the list on account of name, address with recipient type Message.RecipientType.CC.
CHARACTER_ENCODING - Static variable in class org.codemonkey.simplejavamail.Mailer
Encoding used for setting body text, email address, headers, reply-to fields etc.
createMailSession(String, Integer, String, String) - Method in class org.codemonkey.simplejavamail.Mailer
Actually instantiates and configures the Session instance.

D

dataSource - Variable in class org.codemonkey.simplejavamail.AttachmentResource
 

E

Email - Class in org.codemonkey.simplejavamail
Email message with all necessary data for an effective mailing action, including attachments etc.
Email() - Constructor for class org.codemonkey.simplejavamail.Email
Constructor, creates all internal lists.
Email(Email.Builder) - Constructor for class org.codemonkey.simplejavamail.Email
Constructor for the Builder class
email - Variable in class org.codemonkey.simplejavamail.Email.Builder
 
Email.Builder - Class in org.codemonkey.simplejavamail
Fluent interface Builder for Emails
EmailAddressValidationCriteria - Class in org.codemonkey.simplejavamail
Defines a set of restriction flags for email address validation.
EmailAddressValidationCriteria(boolean, boolean) - Constructor for class org.codemonkey.simplejavamail.EmailAddressValidationCriteria
 
emailAddressValidationCriteria - Variable in class org.codemonkey.simplejavamail.Mailer
Email address restriction flags set either by constructor or overridden by getter by user.
EmailValidationUtil - Class in org.codemonkey.simplejavamail
Validates an email address according to RFC 2822, using regular expressions.
EmailValidationUtil() - Constructor for class org.codemonkey.simplejavamail.EmailValidationUtil
Private constructor; this is a utility class with static methods only, not designed for extension.
embeddedImages - Variable in class org.codemonkey.simplejavamail.Email.Builder
embeddedImages - Variable in class org.codemonkey.simplejavamail.Email
embedImage(String, byte[], String) - Method in class org.codemonkey.simplejavamail.Email.Builder
Adds an embedded image (attachment type) to the email message and generates the necessary DataSource with the given byte data.
embedImage(String, DataSource) - Method in class org.codemonkey.simplejavamail.Email.Builder
Overloaded method which sets an embedded image on account of name and DataSource.

F

from(String, String) - Method in class org.codemonkey.simplejavamail.Email.Builder
Sets the sender address.
fromRecipient - Variable in class org.codemonkey.simplejavamail.Email.Builder
 
fromRecipient - Variable in class org.codemonkey.simplejavamail.Email
The sender of the email.

G

generateProperties() - Method in enum org.codemonkey.simplejavamail.TransportStrategy
Base implementation that simply returns an empty list of properties.
GENERIC_ERROR - Static variable in exception org.codemonkey.simplejavamail.MailException
 
getAddress() - Method in class org.codemonkey.simplejavamail.Recipient
Bean getter for Recipient.address;
getAttachments() - Method in class org.codemonkey.simplejavamail.Email
Bean getter for Email.attachments as unmodifiable list.
getBodyPartFromDatasource(AttachmentResource, String) - Method in class org.codemonkey.simplejavamail.Mailer
Helper method which generates a BodyPart from an AttachmentResource (from its DataSource) and a disposition type (Part.INLINE or Part.ATTACHMENT).
getDataSource() - Method in class org.codemonkey.simplejavamail.AttachmentResource
Bean getter for dataSource.
getEmbeddedImages() - Method in class org.codemonkey.simplejavamail.Email
Bean getter for Email.embeddedImages as unmodifiable list.
getFromRecipient() - Method in class org.codemonkey.simplejavamail.Email
Bean getter for Email.fromRecipient.
getHeaders() - Method in class org.codemonkey.simplejavamail.Email
Bean getter for Email.headers as unmodifiable map.
getName() - Method in class org.codemonkey.simplejavamail.AttachmentResource
Bean getter for name.
getName() - Method in class org.codemonkey.simplejavamail.Recipient
Bean getter for Recipient.name;
getRecipients() - Method in class org.codemonkey.simplejavamail.Email
Bean getter for Email.recipients as unmodifiable list.
getReplyToRecipient() - Method in class org.codemonkey.simplejavamail.Email
Bean getter for Email.replyToRecipient.
getSession() - Method in class org.codemonkey.simplejavamail.Mailer
In case Simple Java Mail falls short somehow, you can get a hold of the internal Session instance to debug or tweak.
getSubject() - Method in class org.codemonkey.simplejavamail.Email
Bean getter for Email.subject.
getText() - Method in class org.codemonkey.simplejavamail.Email
Bean getter for Email.text.
getTextHTML() - Method in class org.codemonkey.simplejavamail.Email
Bean getter for Email.textHTML.
getType() - Method in class org.codemonkey.simplejavamail.Recipient
Bean getter for Recipient.type;

H

headers - Variable in class org.codemonkey.simplejavamail.Email.Builder
Map of header name and values, such as X-Priority etc.
headers - Variable in class org.codemonkey.simplejavamail.Email
Map of header name and values, such as X-Priority etc.

I

INVALID_ENCODING - Static variable in exception org.codemonkey.simplejavamail.MailException
 
INVALID_RECIPIENT - Static variable in exception org.codemonkey.simplejavamail.MailException
 
INVALID_REPLYTO - Static variable in exception org.codemonkey.simplejavamail.MailException
 
INVALID_SENDER - Static variable in exception org.codemonkey.simplejavamail.MailException
 
isAllowDomainLiterals() - Method in class org.codemonkey.simplejavamail.EmailAddressValidationCriteria
 
isAllowQuotedIdentifiers() - Method in class org.codemonkey.simplejavamail.EmailAddressValidationCriteria
 
isValid(String) - Static method in class org.codemonkey.simplejavamail.EmailValidationUtil
Validates an e-mail with default validation flags that remains true to RFC 2822.
isValid(String, EmailAddressValidationCriteria) - Static method in class org.codemonkey.simplejavamail.EmailValidationUtil
Validates an e-mail with given validation flags.

L

logger - Static variable in class org.codemonkey.simplejavamail.Mailer
 
logSession(Session, TransportStrategy) - Method in class org.codemonkey.simplejavamail.Mailer
Simply logs host details, credentials used and whether authentication will take place and finally the transport protocol used.

M

Mailer - Class in org.codemonkey.simplejavamail
Mailing tool aimed for simplicity, for sending e-mails of any complexity.
Mailer(Session) - Constructor for class org.codemonkey.simplejavamail.Mailer
Default constructor, stores the given mail session for later use.
Mailer(String, Integer, String, String, TransportStrategy) - Constructor for class org.codemonkey.simplejavamail.Mailer
Overloaded constructor which produces a new Session on the fly.
Mailer(String, Integer, String, String) - Constructor for class org.codemonkey.simplejavamail.Mailer
Overloaded constructor which produces a new Session on the fly, using default vanilla SMTP transport protocol.
Mailer.MimeEmailMessageWrapper - Class in org.codemonkey.simplejavamail
This class conveniently wraps all necessary mimemessage parts that need to be filled with content, attachments etc.
MailException - Exception in org.codemonkey.simplejavamail
This exception is used to communicate errors during the sending of email.
MailException(String) - Constructor for exception org.codemonkey.simplejavamail.MailException
 
MailException(String, MessagingException) - Constructor for exception org.codemonkey.simplejavamail.MailException
 
MimeEmailMessageWrapper() - Constructor for class org.codemonkey.simplejavamail.Mailer.MimeEmailMessageWrapper
Creates an email skeleton structure, so that embedded images, attachments and (html) texts are being processed properly.
MISSING_CONTENT - Static variable in exception org.codemonkey.simplejavamail.MailException
 
MISSING_HOST - Static variable in exception org.codemonkey.simplejavamail.MailException
 
MISSING_RECIPIENT - Static variable in exception org.codemonkey.simplejavamail.MailException
 
MISSING_SENDER - Static variable in exception org.codemonkey.simplejavamail.MailException
 
MISSING_SUBJECT - Static variable in exception org.codemonkey.simplejavamail.MailException
 
MISSING_USERNAME - Static variable in exception org.codemonkey.simplejavamail.MailException
 
multipartAlternativeMessages - Variable in class org.codemonkey.simplejavamail.Mailer.MimeEmailMessageWrapper
 
multipartRelated - Variable in class org.codemonkey.simplejavamail.Mailer.MimeEmailMessageWrapper
 
multipartRoot - Variable in class org.codemonkey.simplejavamail.Mailer.MimeEmailMessageWrapper
 

N

name - Variable in class org.codemonkey.simplejavamail.AttachmentResource
 
name - Variable in class org.codemonkey.simplejavamail.Recipient
 

O

org.codemonkey.simplejavamail - package org.codemonkey.simplejavamail
 

P

prepareMessage(Email, Mailer.MimeEmailMessageWrapper) - Method in class org.codemonkey.simplejavamail.Mailer
Creates a new MimeMessage instance and prepares it in the email structure, so that it can be filled and send.
propertyNameAuthenticate() - Method in enum org.codemonkey.simplejavamail.TransportStrategy
 
propertyNameHost() - Method in enum org.codemonkey.simplejavamail.TransportStrategy
 
propertyNamePort() - Method in enum org.codemonkey.simplejavamail.TransportStrategy
 
propertyNameUsername() - Method in enum org.codemonkey.simplejavamail.TransportStrategy
 

R

Recipient - Class in org.codemonkey.simplejavamail
An immutable recipient object, with a name, emailadres and recipient type (eg Message.RecipientType.BCC).
Recipient(String, String, Message.RecipientType) - Constructor for class org.codemonkey.simplejavamail.Recipient
Constructor; initializes this recipient object.
recipients - Variable in class org.codemonkey.simplejavamail.Email.Builder
List of Recipient.
recipients - Variable in class org.codemonkey.simplejavamail.Email
List of Recipient.
replyTo(String, String) - Method in class org.codemonkey.simplejavamail.Email.Builder
Sets the reply-to address (optional).
replyToRecipient - Variable in class org.codemonkey.simplejavamail.Email.Builder
The reply-to-address, optional.
replyToRecipient - Variable in class org.codemonkey.simplejavamail.Email
The reply-to-address, optional.
RFC_COMPLIANT - Static variable in class org.codemonkey.simplejavamail.EmailAddressValidationCriteria
Criteria which is most RFC 2822 compliant and allows all compiant address forms, including the more exotic ones.

S

sendMail(Email) - Method in class org.codemonkey.simplejavamail.Mailer
Processes an Email instance into a completely configured Message.
session - Variable in class org.codemonkey.simplejavamail.Mailer
Used to actually send the email.
setAttachments(Email, MimeMultipart) - Method in class org.codemonkey.simplejavamail.Mailer
Fills the Message instance with the attachments from the Email.
setDebug(boolean) - Method in class org.codemonkey.simplejavamail.Mailer
Actually sets Session.setDebug(boolean) so that it generates debug information.
setEmailAddressValidationCriteria(EmailAddressValidationCriteria) - Method in class org.codemonkey.simplejavamail.Mailer
Overrides the default email address validation restrictions when validating and sending emails using the current Mailer instance.
setEmbeddedImages(Email, MimeMultipart) - Method in class org.codemonkey.simplejavamail.Mailer
Fills the Message instance with the embedded images from the Email.
setFromAddress(String, String) - Method in class org.codemonkey.simplejavamail.Email
Sets the sender address.
setHeaders(Email, Message) - Method in class org.codemonkey.simplejavamail.Mailer
Sets all headers on the Message instance.
setRecipients(Email, Message) - Method in class org.codemonkey.simplejavamail.Mailer
Fills the Message instance with recipients from the Email.
setReplyTo(Email, Message) - Method in class org.codemonkey.simplejavamail.Mailer
Fills the Message instance with reply-to address.
setReplyToAddress(String, String) - Method in class org.codemonkey.simplejavamail.Email
Sets the reply-to address (optional).
setSubject(String) - Method in class org.codemonkey.simplejavamail.Email
Bean setters for Email.subject.
setText(String) - Method in class org.codemonkey.simplejavamail.Email
Bean setters for Email.text.
setTextHTML(String) - Method in class org.codemonkey.simplejavamail.Email
Bean setters for Email.textHTML.
setTexts(Email, MimeMultipart) - Method in class org.codemonkey.simplejavamail.Mailer
Fills the Message instance with the content bodies (text and html).
subject - Variable in class org.codemonkey.simplejavamail.Email.Builder
The subject of the email message.
subject(String) - Method in class org.codemonkey.simplejavamail.Email.Builder
subject - Variable in class org.codemonkey.simplejavamail.Email
The subject of the email message.

T

text - Variable in class org.codemonkey.simplejavamail.Email.Builder
The email message body in plain text.
text(String) - Method in class org.codemonkey.simplejavamail.Email.Builder
text - Variable in class org.codemonkey.simplejavamail.Email
The email message body in plain text.
textHTML - Variable in class org.codemonkey.simplejavamail.Email.Builder
The email message body in html.
textHTML(String) - Method in class org.codemonkey.simplejavamail.Email.Builder
textHTML - Variable in class org.codemonkey.simplejavamail.Email
The email message body in html.
to(String, String) - Method in class org.codemonkey.simplejavamail.Email.Builder
Adds a new Recipient to the list on account of name, address with recipient type Message.RecipientType.TO.
to(Recipient) - Method in class org.codemonkey.simplejavamail.Email.Builder
Adds a new Recipient to the list on account of name, address with recipient type Message.RecipientType.TO.
transportStrategy - Variable in class org.codemonkey.simplejavamail.Mailer
The transport protocol strategy enum that actually handles the session configuration.
TransportStrategy - Enum in org.codemonkey.simplejavamail
Defines the various types of transport protocols and implements respective properties so that a Session may be configured using a TransportStrategy implementation.
TransportStrategy() - Constructor for enum org.codemonkey.simplejavamail.TransportStrategy
 
type - Variable in class org.codemonkey.simplejavamail.Recipient
 

V

validate(Email) - Method in class org.codemonkey.simplejavamail.Mailer
Validates an Email instance.
valueOf(String) - Static method in enum org.codemonkey.simplejavamail.TransportStrategy
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.codemonkey.simplejavamail.TransportStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I L M N O P R S T V 
Skip navigation links

Copyright © 2009 under Apache v2 license.