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 Details

    • sendMailWithoutAttachment

      void sendMailWithoutAttachment(EmailDetails details)
      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

      void sendMailWithAttachment(EmailDetails details)
      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