Class MailWatcherMailer
- java.lang.Object
-
- org.jenkinsci.plugins.mailwatcher.MailWatcherMailer
-
public class MailWatcherMailer extends Object
Send email notification.- Author:
- ogondza
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.mail.internet.MimeMessage
send(MailWatcherNotification notification)
Send the notificationstatic FormValidation
validateMailAddresses(String addressesCandidate)
Validate list of email addresses.
-
-
-
Method Detail
-
send
public jakarta.mail.internet.MimeMessage send(MailWatcherNotification notification) throws jakarta.mail.MessagingException
Send the notification- Returns:
- sent MimeMessage or null if notification was not sent
- Throws:
jakarta.mail.MessagingException
-
validateMailAddresses
public static FormValidation validateMailAddresses(String addressesCandidate)
Validate list of email addresses.- Parameters:
addressesCandidate
- String representing list of addresses- Returns:
- FormValidation representing state of validation
-
-