Interface JavaMailSender

All Known Implementing Classes:
DefaultJavaMailSender

public interface JavaMailSender
The JavaMailSender interface contains all the methods of a JavaMailSender implementation currently used by the mail component.
  • Method Details

    • send

      void send(jakarta.mail.internet.MimeMessage mimeMessage) throws jakarta.mail.MessagingException
      Send the mail
      Parameters:
      mimeMessage - the message to send
      Throws:
      jakarta.mail.MessagingException - is thrown if error sending the mail.
    • getJavaMailProperties

      Properties getJavaMailProperties()
    • setJavaMailProperties

      void setJavaMailProperties(Properties javaMailProperties)
    • addAdditionalJavaMailProperty

      void addAdditionalJavaMailProperty(String key, String value)
    • setHost

      void setHost(String host)
    • getHost

      String getHost()
    • setPort

      void setPort(int port)
    • getPort

      int getPort()
    • setUsername

      void setUsername(String username)
    • getUsername

      String getUsername()
    • setPassword

      void setPassword(String password)
    • getPassword

      String getPassword()
    • setProtocol

      void setProtocol(String protocol)
    • getProtocol

      String getProtocol()
    • setSession

      void setSession(jakarta.mail.Session session)
    • getSession

      jakarta.mail.Session getSession()
    • setAuthenticator

      void setAuthenticator(MailAuthenticator authenticator)
    • getAuthenticator

      MailAuthenticator getAuthenticator()