Package org.ametys.core.util.mail
Class SendMailHelper
- java.lang.Object
-
- org.ametys.core.util.mail.SendMailHelper
-
- All Implemented Interfaces:
Disposable
public final class SendMailHelper extends Object implements Disposable
Helper for sending mail
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SendMailHelper.MailBuilder
Implements the builder pattern for creating and sending emails.
-
Field Summary
Fields Modifier and Type Field Description static Pattern
EMAIL_VALIDATION
Regexp to validate an emailstatic String
EMAIL_VALIDATION_REGEXP
Regexp to validate an email
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
static SendMailHelper.MailBuilder
newMail()
Creates a new mail builder.
-
-
-
Field Detail
-
EMAIL_VALIDATION_REGEXP
public static final String EMAIL_VALIDATION_REGEXP
Regexp to validate an email- See Also:
- Constant Field Values
-
EMAIL_VALIDATION
public static final Pattern EMAIL_VALIDATION
Regexp to validate an email
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceDisposable
-
newMail
public static SendMailHelper.MailBuilder newMail()
Creates a new mail builder.- Returns:
- the newly created
SendMailHelper.MailBuilder
.
-
-