Class EmailService
java.lang.Object
callofproject.dev.service.email.service.EmailService
The email service.
CopyRight(C) 2023 by Call Of Project Teams.
-
Constructor Summary
ConstructorsConstructorDescriptionEmailService
(org.springframework.mail.javamail.JavaMailSender javaMailSender, ExecutorService executorService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendEmail
(callofproject.dev.data.common.dto.EmailTopic emailTopic) Send email asynchronously.
-
Constructor Details
-
EmailService
public EmailService(org.springframework.mail.javamail.JavaMailSender javaMailSender, ExecutorService executorService) Constructor.- Parameters:
javaMailSender
- represents the java mail senderexecutorService
- represents the executor service
-
-
Method Details
-
sendEmail
public void sendEmail(callofproject.dev.data.common.dto.EmailTopic emailTopic) Send email asynchronously.- Parameters:
emailTopic
- represents the email topic
-