Package com.atlassian.bitbucket.mail
Interface MailService
public interface MailService
Service used for formatting, scheduling and sending of emails.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
submit
(MailMessage mailMessage) Submit theMailMessage
to the mail queue.
-
Method Details
-
isHostConfigured
boolean isHostConfigured()- Returns:
- true if the mail host is configured.
-
submit
void submit(MailMessage mailMessage) throws NoMailHostConfigurationException, MailQueueFullException, MailSizeExceededException Submit theMailMessage
to the mail queue.- Parameters:
mailMessage
- the message to send.- Throws:
NoMailHostConfigurationException
- if the mail host hasn't been configuredMailQueueFullException
- if the mail queue is full and it cannot be queuedMailSizeExceededException
- if the mail subject/body is too large
-