Package app.YUP.externalService
Interface EmailService
- All Known Implementing Classes:
EmailServiceImplementation
public interface EmailService
This interface provides methods to send emails.
It defines two methods, one for sending an email without an attachment and one for sending an email with an attachment.
The methods take an EmailDetails object as a parameter, which contains the details of the email to be sent.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsendMailWithAttachment(EmailDetails details) Sends an email with an attachment.voidsendMailWithoutAttachment(EmailDetails details) Sends an email without an attachment.
-
Method Details
-
sendMailWithoutAttachment
Sends an email without an attachment. This method takes an EmailDetails object as a parameter, which contains the details of the email to be sent. The EmailDetails object should contain the recipient's email address, the subject of the email, and the body of the email.- Parameters:
details- an EmailDetails object containing the details of the email to be sent
-
sendMailWithAttachment
Sends an email with an attachment. This method takes an EmailDetails object as a parameter, which contains the details of the email to be sent. The EmailDetails object should contain the recipient's email address, the subject of the email, the body of the email, and the attachment.- Parameters:
details- an EmailDetails object containing the details of the email to be sent, including the attachment
-