Class EmailConnectionTesterImpl

java.lang.Object
io.jmix.email.impl.EmailConnectionTesterImpl
All Implemented Interfaces:
EmailConnectionTester

@NullMarked @Component("email_EmailConnectionTester") public class EmailConnectionTesterImpl extends Object implements EmailConnectionTester
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.springframework.mail.javamail.JavaMailSender
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EmailConnectionTesterImpl(org.springframework.mail.javamail.JavaMailSender mailSender)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Connects the underlying mail transport, performs authentication and closes the connection.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mailSender

      protected final org.springframework.mail.javamail.JavaMailSender mailSender
  • Constructor Details

    • EmailConnectionTesterImpl

      public EmailConnectionTesterImpl(org.springframework.mail.javamail.JavaMailSender mailSender)
  • Method Details

    • testConnection

      public void testConnection() throws jakarta.mail.MessagingException
      Description copied from interface: EmailConnectionTester
      Connects the underlying mail transport, performs authentication and closes the connection. When OAuth2 authentication is enabled, this includes obtaining an access token, so an invalid or revoked refresh token is reported as a failure.
      Specified by:
      testConnection in interface EmailConnectionTester
      Throws:
      jakarta.mail.MessagingException - if the connection or authentication fails