public interface

MailService

com.atlassian.bitbucket.mail.MailService

Class Overview

Service used for formatting, scheduling and sending of emails.

Summary

Public Methods
boolean isHostConfigured()
void submit(MailMessage mailMessage)
Submit the MailMessage to the mail queue.

Public Methods

public boolean isHostConfigured ()

Returns
  • true if the mail host is configured.

public void submit (MailMessage mailMessage)

Submit the MailMessage to the mail queue.

Parameters
mailMessage the message to send.
Throws
NoMailHostConfigurationException if the mail host hasn't been configured
MailQueueFullException if the mail queue is full and it cannot be queued
MailSizeExceededException if the mail subject/body is too large