Package com.helixframework.email
Class SmtpEmailService
java.lang.Object
com.helixframework.email.SmtpEmailService
- All Implemented Interfaces:
EmailService
Implementation of the
EmailService interface for sending emails using the SMTP protocol.
This class uses a JavaMailSender to send emails and relies on Spring's JavaMail support.
It is designed for actual production email sending, leveraging the SMTP mail server configurations.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SmtpEmailService.Builderbuilder()Creates a new instance of theSmtpEmailService.Builderfor configuring and constructing anSmtpEmailService.voidSends an email to the specified recipient.
-
Method Details
-
builder
Creates a new instance of theSmtpEmailService.Builderfor configuring and constructing anSmtpEmailService.- Returns:
- a new
SmtpEmailService.Builderinstance
-
send
Description copied from interface:EmailServiceSends an email to the specified recipient.- Specified by:
sendin interfaceEmailService- Parameters:
to- the email address of the recipientsubject- the subject line of the emailbody- the body content of the email
-