Class EMailSender

java.lang.Object
io.goobi.viewer.model.email.EMailSender

public class EMailSender extends Object
Sends plain-text and HTML e-mails via a configured SMTP server, supporting SSL, STARTTLS, and authenticated connections.
  • Constructor Details

    • EMailSender

      public EMailSender()
    • EMailSender

      public EMailSender(Configuration config)
      Parameters:
      config - configuration object providing SMTP settings
    • EMailSender

      public EMailSender(String smtpServer, String smtpUser, String smtpPassword, String smtpSenderAddress, String smtpSenderName, String smtpSecurity, Integer smtpPort)
      Parameters:
      smtpServer - hostname or IP address of the SMTP server
      smtpUser - username for SMTP authentication
      smtpPassword - password for SMTP authentication
      smtpSenderAddress - email address used as the sender
      smtpSenderName - display name shown as the sender
      smtpSecurity - security protocol to use (NONE, SSL, STARTTLS)
      smtpPort - SMTP server port number
  • Method Details