public interface CustomMailer
The benefit of this is that Simple Java Mail acts as an accelarator, providing thread pool, applying email content-validation, address validations,
configuring a Session
instance, producing a MimeMessage
, all with full S/MIME, DKIM support and everything else.
Note: in this mode, proxy support is turned off assuming it is handled by the custom mailer as well. Note: in this mode, the batch-module (SMTP cluster(s) / smtp connection pooling) won't be used either.
Modifier and Type | Method and Description |
---|---|
void |
sendMessage(@NotNull OperationalConfig operationalConfig,
@NotNull jakarta.mail.Session session,
@NotNull Email email,
@NotNull jakarta.mail.internet.MimeMessage message) |
void |
testConnection(@NotNull OperationalConfig operationalConfig,
@NotNull jakarta.mail.Session session) |
void testConnection(@NotNull @NotNull OperationalConfig operationalConfig, @NotNull @NotNull jakarta.mail.Session session)
void sendMessage(@NotNull @NotNull OperationalConfig operationalConfig, @NotNull @NotNull jakarta.mail.Session session, @NotNull @NotNull Email email, @NotNull @NotNull jakarta.mail.internet.MimeMessage message)
Copyright © 2009–2024. All rights reserved.