public static class MailOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MailOptions |
build() |
MailOptions.Builder |
withAttachments(List<String> attachments) |
MailOptions.Builder |
withAuth(Boolean auth) |
MailOptions.Builder |
withBcc(String bcc) |
MailOptions.Builder |
withCc(String cc) |
MailOptions.Builder |
withContent(String content) |
MailOptions.Builder |
withFrom(String from) |
MailOptions.Builder |
withHost(String host) |
MailOptions.Builder |
withMailer(String mailer) |
MailOptions.Builder |
withMimeType(MimeType mimeType) |
MailOptions.Builder |
withPassword(String password) |
MailOptions.Builder |
withPort(Integer port) |
MailOptions.Builder |
withProps(Map<String,Object> props) |
MailOptions.Builder |
withProps(Properties props) |
MailOptions.Builder |
withSubject(String subject) |
MailOptions.Builder |
withTo(String to) |
MailOptions.Builder |
withTransport(Transport transport) |
MailOptions.Builder |
withUsername(String username) |
public MailOptions build()
public MailOptions.Builder withMailer(String mailer)
public MailOptions.Builder withTransport(Transport transport)
public MailOptions.Builder withHost(String host)
public MailOptions.Builder withPort(Integer port)
public MailOptions.Builder withAuth(Boolean auth)
public MailOptions.Builder withUsername(String username)
public MailOptions.Builder withPassword(String password)
public MailOptions.Builder withFrom(String from)
public MailOptions.Builder withTo(String to)
public MailOptions.Builder withCc(String cc)
public MailOptions.Builder withBcc(String bcc)
public MailOptions.Builder withSubject(String subject)
public MailOptions.Builder withContent(String content)
public MailOptions.Builder withMimeType(MimeType mimeType)
public MailOptions.Builder withAttachments(List<String> attachments)
public MailOptions.Builder withProps(Properties props)
public MailOptions.Builder withProps(Map<String,Object> props)