Package best.skn.mail.services
Class MailSenderMessage
java.lang.Object
best.skn.mail.services.MailSenderMessage
Mail Sender Output Message Class
- Since:
- 2024-03-07
- Version:
- 1.2.1
- Author:
- SKN
- Use Case:
- Spring Boot Reactive
- Dedicated To:
- Trina, Logno and Atoshi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static reactor.core.publisher.Mono<String> exceptionError(String error) Protected method to return an error message for messaging exceptionprotected static StringProtected method to return an error message for null HTML contentprotected static StringProtected method to return an error message for null parameterprotected static reactor.core.publisher.Mono<String> Protected method to return a success message for sending basic mailprotected static reactor.core.publisher.Mono<String> Protected method to return a success message for sending basic mail with attachmentprotected static reactor.core.publisher.Mono<String> Protected method to return a success message for sending mail with HTML template and attachmentprotected static reactor.core.publisher.Mono<String> Protected method to return a success message for sending mail with HTML template
-
Constructor Details
-
MailSenderMessage
public MailSenderMessage()
-
-
Method Details
-
parameterError
Protected method to return an error message for null parameter- Returns:
- a String containing the error message for null parameter
- Since:
- v1.0.0
-
htmlContentError
Protected 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
Protected 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
Protected 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
Protected 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
Protected 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
Protected 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
-