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 classSendMailHelper.MailBuilderImplements the builder pattern for creating and sending emails.
-
Field Summary
Fields Modifier and Type Field Description static PatternEMAIL_VALIDATIONRegexp to validate an emailstatic StringEMAIL_VALIDATION_REGEXPRegexp to validate an email
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()static SendMailHelper.MailBuildernewMail()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:
disposein interfaceDisposable
-
newMail
public static SendMailHelper.MailBuilder newMail()
Creates a new mail builder.- Returns:
- the newly created
SendMailHelper.MailBuilder.
-
-