public class EmailService extends Object
| Constructor and Description |
|---|
EmailService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEmailToQueue(String to,
String subject,
String emailContents,
boolean callSend)
Adds the email to queue.
|
protected com.jk.core.mail.JKMailSender |
getEmailSender()
Gets the email sender.
|
List<Email> |
getEmailsInQueue()
Gets the emails in queue.
|
static void |
main(String[] args)
The main method.
|
void |
sendEmailsInQueue()
Send emails in queue.
|
void |
setSender(com.jk.core.mail.JKMailSender sender)
Sets the sender.
|
public void addEmailToQueue(String to, String subject, String emailContents, boolean callSend)
to - the tosubject - the subjectemailContents - the email contentscallSend - the call sendpublic void sendEmailsInQueue()
public List<Email> getEmailsInQueue()
protected com.jk.core.mail.JKMailSender getEmailSender()
public void setSender(com.jk.core.mail.JKMailSender sender)
sender - the new senderpublic static void main(String[] args)
args - the argumentsCopyright © 2023 Smart-Cloud. All rights reserved.