Interface EmailSenderService
-
- All Known Implementing Classes:
EmailSenderServiceImpl
public interface EmailSenderService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getContactSupplierTemplate(java.lang.String messageText, java.lang.String fullName, java.lang.String mailTo)
This method returns template.java.lang.String
getMessageNotificationEmailTemplate(java.lang.String messageText)
This method returns template.java.lang.String
getOrderConfirmationEmail(EmailMessage emailMessage)
This method returns template.java.lang.String
getResetPasswordTemplate(java.lang.String fullName, java.lang.String token)
This method returns template.java.lang.String
getTariffBookingEmailTemplate(java.lang.String fullName)
This method returns template.java.lang.String
getUploadRequestEmailTemplate(EmailMessage emailMessage)
This method returns template.java.lang.String
getVerificationEmailTemplate(java.lang.String fullName, java.lang.String token)
This method returns template.java.lang.String
getWelcomeEmailTemplate(java.lang.String fullName)
This method returns template.void
sendEmailWithAttachments(java.lang.String to, java.lang.String subject, java.lang.String text, java.util.ArrayList<java.lang.String> attachments)
This method send a email.void
sendMimeMessage(java.lang.String to, java.lang.String subject, java.lang.String message)
This method send a email.void
sendOrderConfirmationEmail(EmailMessage emailMessage)
Sends a success email for the order.void
sendResetPasswordEmail(User user)
This method sending a reset password link to user emailvoid
sendSimpleEmail(java.lang.String to, java.lang.String subject, java.lang.String text)
This method send a email.void
sendVerificationEmail(User user)
This method sending a verification link to user emailvoid
sendWelcomeEmail(User user)
This method sending a welcome email
-
-
-
Method Detail
-
getVerificationEmailTemplate
java.lang.String getVerificationEmailTemplate(java.lang.String fullName, java.lang.String token)
This method returns template.- Parameters:
fullName
- field for database entitytoken
- field for database entity- Returns:
- template of email
-
getWelcomeEmailTemplate
java.lang.String getWelcomeEmailTemplate(java.lang.String fullName)
This method returns template.- Parameters:
fullName
- field for database entity- Returns:
- template of email
-
getResetPasswordTemplate
java.lang.String getResetPasswordTemplate(java.lang.String fullName, java.lang.String token)
This method returns template.- Parameters:
fullName
- field for database entitytoken
- field for database entity- Returns:
- template of email
-
getMessageNotificationEmailTemplate
java.lang.String getMessageNotificationEmailTemplate(java.lang.String messageText)
This method returns template.- Parameters:
messageText
- field for database entity- Returns:
- template of email
-
getContactSupplierTemplate
java.lang.String getContactSupplierTemplate(java.lang.String messageText, java.lang.String fullName, java.lang.String mailTo)
This method returns template.- Parameters:
messageText
- field for database entityfullName
- field for database entitymailTo
- field for database entity- Returns:
- template of email
-
getTariffBookingEmailTemplate
java.lang.String getTariffBookingEmailTemplate(java.lang.String fullName)
This method returns template.- Parameters:
fullName
- field for database entity- Returns:
- template of email
-
getUploadRequestEmailTemplate
java.lang.String getUploadRequestEmailTemplate(EmailMessage emailMessage)
This method returns template.- Parameters:
emailMessage
- email entity- Returns:
- template of email
-
getOrderConfirmationEmail
java.lang.String getOrderConfirmationEmail(EmailMessage emailMessage)
This method returns template.- Parameters:
emailMessage
- email entity- Returns:
- template of email
-
sendSimpleEmail
void sendSimpleEmail(java.lang.String to, java.lang.String subject, java.lang.String text)
This method send a email.- Parameters:
to
- field database entity whose will be send emailsubject
- field for database entity and subject for emailtext
- field for database entity and content for email
-
sendEmailWithAttachments
void sendEmailWithAttachments(java.lang.String to, java.lang.String subject, java.lang.String text, java.util.ArrayList<java.lang.String> attachments)
This method send a email.- Parameters:
to
- field database entity whose will be send emailsubject
- field for database entity and subject for emailtext
- field for database entity and content for emailattachments
- the list of attachments
-
sendMimeMessage
void sendMimeMessage(java.lang.String to, java.lang.String subject, java.lang.String message)
This method send a email.- Parameters:
to
- field database entity whose will be sent emailsubject
- field for database entity and subject for emailmessage
- field for database entity and content for email
-
sendVerificationEmail
void sendVerificationEmail(User user)
This method sending a verification link to user email- Parameters:
user
- registered user
-
sendWelcomeEmail
void sendWelcomeEmail(User user)
This method sending a welcome email- Parameters:
user
- registered user
-
sendResetPasswordEmail
void sendResetPasswordEmail(User user)
This method sending a reset password link to user email- Parameters:
user
- registered user
-
sendOrderConfirmationEmail
void sendOrderConfirmationEmail(EmailMessage emailMessage)
Sends a success email for the order.This method sends a success email for the order specified by the given email message.
- Parameters:
emailMessage
- the email message object containing the details of the success email
-
-