Package org.ametys.core.util.mail
Class SendMailHelper
java.lang.Object
org.ametys.core.util.mail.SendMailHelper
- All Implemented Interfaces:
Disposable
Helper for sending mail
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Implements the builder pattern for creating and sending emails. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
static SendMailHelper.MailBuilder
newMail()
Creates a new mail builder.
-
Field Details
-
EMAIL_VALIDATION_REGEXP
Regexp to validate an email- See Also:
-
EMAIL_VALIDATION
Regexp to validate an email
-
-
Method Details
-
dispose
- Specified by:
dispose
in interfaceDisposable
-
newMail
Creates a new mail builder.- Returns:
- the newly created
SendMailHelper.MailBuilder
.
-