Package org.appng.mail.impl
Class MailImpl
- java.lang.Object
-
- org.appng.mail.impl.MailImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.appng.mail.Mail
Mail.RecipientType
-
-
Method Summary
-
-
-
Method Detail
-
addReceiver
public Mail addReceiver(Receiver receiver)
- Specified by:
addReceiver
in interfaceMail
-
addReceiver
public Mail addReceiver(String email, Mail.RecipientType type)
- Specified by:
addReceiver
in interfaceMail
-
addReceiver
public Mail addReceiver(String email, String name, Mail.RecipientType type)
- Specified by:
addReceiver
in interfaceMail
-
markInvalidReceivers
public void markInvalidReceivers(List<String> invalid)
- Specified by:
markInvalidReceivers
in interfaceMail
-
setHTMLContent
public Mail setHTMLContent(String content)
- Specified by:
setHTMLContent
in interfaceMail
-
setTextContent
public Mail setTextContent(String content)
- Specified by:
setTextContent
in interfaceMail
-
addAttachment
public Mail addAttachment(File file, String mimeType) throws MailException
- Specified by:
addAttachment
in interfaceMail
- Throws:
MailException
-
addAttachment
public Mail addAttachment(File file, String name, String mimeType) throws MailException
- Specified by:
addAttachment
in interfaceMail
- Throws:
MailException
-
addAttachment
public Mail addAttachment(InputStream is, String name, String mimeType) throws MailException
- Specified by:
addAttachment
in interfaceMail
- Throws:
MailException
-
hasAttachments
public boolean hasAttachments()
- Specified by:
hasAttachments
in interfaceMail
-
setSubject
public Mail setSubject(String subject)
- Specified by:
setSubject
in interfaceMail
-
addReplyTo
public Mail addReplyTo(String email)
- Specified by:
addReplyTo
in interfaceMail
-
addReplyTo
public Mail addReplyTo(String email, String name)
- Specified by:
addReplyTo
in interfaceMail
-
getReceivers
public List<Receiver> getReceivers()
- Specified by:
getReceivers
in interfaceMail
-
getReplyTo
public List<Receiver> getReplyTo()
- Specified by:
getReplyTo
in interfaceMail
-
getAttachments
public List<Attachment> getAttachments()
- Specified by:
getAttachments
in interfaceMail
-
getFromAddress
public Address getFromAddress()
- Specified by:
getFromAddress
in interfaceMail
-
getSubject
public String getSubject()
- Specified by:
getSubject
in interfaceMail
-
getHtmlContent
public String getHtmlContent()
- Specified by:
getHtmlContent
in interfaceMail
-
getTextContent
public String getTextContent()
- Specified by:
getTextContent
in interfaceMail
-
getEncoding
public String getEncoding()
- Specified by:
getEncoding
in interfaceMail
-
setEncoding
public void setEncoding(String encoding)
- Specified by:
setEncoding
in interfaceMail
-
hasReceivers
public boolean hasReceivers()
- Specified by:
hasReceivers
in interfaceMail
-
-