Constructor and Description |
---|
MimeMessageBuilder(javax.mail.Session session) |
Modifier and Type | Method and Description |
---|---|
javax.mail.internet.MimeMessage |
build()
Builds the object after all configuration has been set.
|
javax.mail.internet.MimeMessage |
getMimeMessage()
Deprecated.
Use
build() . |
MimeMessageBuilder |
setFrom(String from) |
MimeMessageBuilder |
setRecipients(javax.mail.Message.RecipientType recipientType,
String recipients) |
MimeMessageBuilder |
setReplyTo(String replyTo) |
MimeMessageBuilder |
setSubject(String subject) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPrefix, isValid
public MimeMessageBuilder setFrom(String from) throws javax.mail.MessagingException
javax.mail.MessagingException
public MimeMessageBuilder setReplyTo(String replyTo) throws javax.mail.MessagingException
javax.mail.MessagingException
public MimeMessageBuilder setRecipients(javax.mail.Message.RecipientType recipientType, String recipients) throws javax.mail.MessagingException
javax.mail.MessagingException
public MimeMessageBuilder setSubject(String subject) throws javax.mail.MessagingException
javax.mail.MessagingException
@Deprecated public javax.mail.internet.MimeMessage getMimeMessage()
build()
.public javax.mail.internet.MimeMessage build()
Builder
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.