Class DummyEmailService

java.lang.Object
com.helixframework.email.DummyEmailService
All Implemented Interfaces:
EmailService

public class DummyEmailService extends Object implements EmailService
A dummy implementation of the EmailService interface for simulating the behavior of sending emails. This implementation logs the email details (recipient, subject, and body) without actually sending any email, useful for testing or environments where email sending should be disabled.
  • Constructor Details

    • DummyEmailService

      public DummyEmailService()
  • Method Details

    • send

      public void send(String to, String subject, String body)
      Description copied from interface: EmailService
      Sends an email to the specified recipient.
      Specified by:
      send in interface EmailService
      Parameters:
      to - the email address of the recipient
      subject - the subject line of the email
      body - the body content of the email