Package com.storedobject.mail
Interface QuickSender
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to send out an SMS quickly.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionstatic QuickSendercreate()Creates an instance of QuickSender by loading the class associated with the "application.quick.mail" property.booleanSend an email.default booleanSend an email.default booleanSend an email.
-
Method Details
-
send
-
send
Send an email.- Parameters:
email- Recipient email address..message- Message text.subject- Subject - could be null.replyTo- Reply to address - could be null.otp- OTP value if it needs to be included. The message will contain a string containing the word OTP in angle brackets that can be replaced with this while sending out the message.- Returns:
- True if sent successfully.
-
send
default boolean send(String email, String message, String subject, String replyTo, String otp, String customTag) Send an email.- Parameters:
email- Recipient email address..message- Message text.subject- Subject - could be null.replyTo- Reply to address - could be null.otp- OTP value if it needs to be included. The message will contain a string containing the word OTP in angle brackets that can be replaced with this while sending out the message.customTag- Custom tag set if any.- Returns:
- True if sent successfully.
-
create
Creates an instance of QuickSender by loading the class associated with the "application.quick.mail" property.- Returns:
- An instance of QuickSender.
- Throws:
SOException- If there is an error creating the instance.
-