Package best.skn.mail.services
Class MailSenderMessage
java.lang.Object
best.skn.mail.services.MailSenderMessage
Mail sender output message class
- Since:
- 07-03-2024
- Version:
- 1.0.0
- Author:
- SKN
- Dedicated To:
- Trina, Logno and Atoshi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringexceptionError(String error) Method to return an error message for messaging exceptionprotected static StringMethod to return an error message for null HTML contentprotected static StringMethod to return an error message for null parameterprotected static StringMethod to return a success message for sending basic mailprotected static StringMethod to return a success message for sending basic mail with attachmentprotected static StringMethod to return a success message for sending mail with HTML template and attachmentprotected static StringMethod to return a success message for sending mail with HTML template
-
Constructor Details
-
MailSenderMessage
public MailSenderMessage()
-
-
Method Details
-
parameterError
Method to return an error message for null parameter- Returns:
- a String containing the error message for null parameter
- Since:
- v1.0.0
-
htmlContentError
Method to return an error message for null HTML content- Returns:
- a String containing the error message for null HTML content
- Since:
- v1.0.0
-
exceptionError
Method to return an error message for messaging exceptionWhen mail is not sent successfully then this method returns the proper error message
The error type is 'MessagingException'
- Parameters:
error- a String to hold the messaging exception error message- Returns:
- a String containing the new and formatted messaging exception error message
- Since:
- v1.0.0
-
sendMailSuccess
Method to return a success message for sending basic mail- Returns:
- a String containing success message for sending basic mail
- Since:
- v1.0.0
-
sendMailWithAttachmentSuccess
Method to return a success message for sending basic mail with attachment- Returns:
- a String containing success message for sending basic mail with attachment
- Since:
- v1.0.0
-
sendMailWithHtmlTemplateSuccess
Method to return a success message for sending mail with HTML template- Returns:
- a String containing success message for sending mail with HTML template
- Since:
- v1.0.0
-
sendMailWithHtmlTemplateAndAttachmentSuccess
Method to return a success message for sending mail with HTML template and attachment- Returns:
- a String containing success message for sending mail with HTML template and attachment
- Since:
- v1.0.0
-