Package com.atlassian.crowd.manager.mail
Class MailSendManager
java.lang.Object
com.atlassian.crowd.manager.mail.MailSendManager
-
Constructor Summary
ConstructorsConstructorDescriptionMailSendManager(MailSessionFactory mailSessionFactory, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.mail.internet.MimeMessagecreateEmail(EmailMessage msg, MailSessionWrapper session) sendMultiple(Collection<? extends EmailMessage> messages, com.atlassian.crowd.util.mail.SMTPServer smtpServer, PrintStream debugStream) voidsendSingle(EmailMessage message, com.atlassian.crowd.util.mail.SMTPServer smtpServer, PrintStream debugStream)
-
Constructor Details
-
MailSendManager
public MailSendManager(MailSessionFactory mailSessionFactory, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
sendMultiple
public Set<EmailMessage> sendMultiple(Collection<? extends EmailMessage> messages, com.atlassian.crowd.util.mail.SMTPServer smtpServer, @Nullable PrintStream debugStream) throws MailSendException - Throws:
MailSendException
-
sendSingle
public void sendSingle(EmailMessage message, com.atlassian.crowd.util.mail.SMTPServer smtpServer, @Nullable PrintStream debugStream) throws MailSendException - Throws:
MailSendException
-
createEmail
protected javax.mail.internet.MimeMessage createEmail(EmailMessage msg, MailSessionWrapper session) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
getMailTransport
-