Mail.RecipientType
public Mail addReceiver(Receiver receiver)
addReceiver
in interface Mail
public Mail addReceiver(String email, Mail.RecipientType type)
addReceiver
in interface Mail
public Mail addReceiver(String email, String name, Mail.RecipientType type)
addReceiver
in interface Mail
public void markInvalidReceivers(List<String> invalid)
markInvalidReceivers
in interface Mail
public Mail setHTMLContent(String content)
setHTMLContent
in interface Mail
public Mail setTextContent(String content)
setTextContent
in interface Mail
public Mail addAttachment(File file, String mimeType) throws MailException
addAttachment
in interface Mail
MailException
public Mail addAttachment(File file, String name, String mimeType) throws MailException
addAttachment
in interface Mail
MailException
public Mail addAttachment(InputStream is, String name, String mimeType) throws MailException
addAttachment
in interface Mail
MailException
public boolean hasAttachments()
hasAttachments
in interface Mail
public Mail setSubject(String subject)
setSubject
in interface Mail
public Mail addReplyTo(String email)
addReplyTo
in interface Mail
public Mail addReplyTo(String email, String name)
addReplyTo
in interface Mail
public List<Receiver> getReceivers()
getReceivers
in interface Mail
public List<Receiver> getReplyTo()
getReplyTo
in interface Mail
public List<Attachment> getAttachments()
getAttachments
in interface Mail
public Address getFromAddress()
getFromAddress
in interface Mail
public String getSubject()
getSubject
in interface Mail
public String getHtmlContent()
getHtmlContent
in interface Mail
public String getTextContent()
getTextContent
in interface Mail
public String getEncoding()
getEncoding
in interface Mail
public void setEncoding(String encoding)
setEncoding
in interface Mail
public boolean hasReceivers()
hasReceivers
in interface Mail
Copyright © 2011–2017 aiticon GmbH. All rights reserved.