Package de.galan.commons.net.mail
Class Mail
java.lang.Object
de.galan.commons.net.mail.Mail
Represents an E-Mail to send. Bean-style accessors are available, as well as fluent setters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(Attachment attachment) voidaddAttachments(List<Attachment> listOfAttachments) voidvoidaddRecipientBcc(MailAddress address) voidaddRecipientCc(MailAddress address) voidaddRecipientTo(MailAddress address) attachment(Attachment mailAttachment) bcc(MailAddress... mailAddress) cc(MailAddress... mailAddress) from(MailAddress mailFrom) getFrom()intbooleanboolean@javax.validation.constraints.AssertTrue booleanpriority(MailPriority MailPriority) voidvoidremoveAttachment(Attachment attachment) replyTo(MailAddress mailReplyTo) voidsetBodyHtml(String bodyHtml) voidsetBodyText(String bodyText) voidsetFrom(MailAddress from) voidsetPriority(MailPriority priority) voidsetReplyTo(MailAddress replyTo) voidsetSubject(String subject) to(MailAddress... mailAddress) toString()
-
Field Details
-
PRIORITY_LOW
public static final int PRIORITY_LOW- See Also:
-
PRIORITY_NORMAL
public static final int PRIORITY_NORMAL- See Also:
-
PRIORITY_HIGH
public static final int PRIORITY_HIGH- See Also:
-
-
Constructor Details
-
Mail
public Mail() -
Mail
-
Mail
-
-
Method Details
-
getSubject
-
setSubject
-
subject
-
getBodyText
-
setBodyText
-
bodyText
-
getBodyHtml
-
setBodyHtml
-
bodyHtml
-
getFrom
-
setFrom
-
from
-
sender
-
getReplyTo
-
setReplyTo
-
replyTo
-
replyTo
-
getPriority
-
setPriority
-
priority
-
getRecipientsTo
-
getRecipientsCc
-
getRecipientsBcc
-
addRecipientTo
-
addRecipientCc
-
addRecipientBcc
-
to
-
to
-
cc
-
cc
-
bcc
-
bcc
-
getHeader
-
addHeader
-
header
-
hasHeaders
public boolean hasHeaders() -
getNumberRecipients
public int getNumberRecipients() -
hasRecipients
@AssertTrue public @javax.validation.constraints.AssertTrue boolean hasRecipients() -
addAttachment
-
addAttachments
-
attachment
-
removeAttachment
-
removeAllAttachments
public void removeAllAttachments() -
getAttachments
-
hasAttachments
public boolean hasAttachments() -
toString
-