Package moblima.utils.services.email
Class EmailService
java.lang.Object
moblima.utils.services.email.EmailService
The type Email service.
REFERENCE: https://www.baeldung.com/java-email
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleansentBookingEmail(String recepientName, String recepientAddress, String bookingDetails) Sent booking email boolean.booleanSent email boolean.booleansentRegistrationEmail(String recepientName, String recepientAddress) Sent registration email boolean.
-
Constructor Details
-
EmailService
public EmailService()Instantiates a new Email service.
-
-
Method Details
-
sentEmail
Sent email boolean.- Parameters:
recepientAddress- the recepient addresssubject- the subjectrawMessage- the raw message- Returns:
- the boolean
-
sentRegistrationEmail
Sent registration email boolean.- Parameters:
recepientName- the recepient namerecepientAddress- the recepient address- Returns:
- the boolean
-
sentBookingEmail
public boolean sentBookingEmail(String recepientName, String recepientAddress, String bookingDetails) Sent booking email boolean.- Parameters:
recepientName- the recepient namerecepientAddress- the recepient addressbookingDetails- the booking details- Returns:
- the boolean
-