Class DefaultSessionProvider

java.lang.Object
io.micronaut.email.javamail.sender.DefaultSessionProvider
All Implemented Interfaces:
SessionProvider

@Requires(beans=MailPropertiesProvider.class) @Secondary @Singleton public class DefaultSessionProvider extends Object implements SessionProvider
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • DefaultSessionProvider

      public DefaultSessionProvider(MailPropertiesProvider mailPropertiesProvider, @Nullable @Nullable jakarta.mail.Authenticator authenticator)
      Parameters:
      mailPropertiesProvider - Mail Properties Provider
      authenticator - Authenticator
      Since:
      1.3.0
  • Method Details

    • session

      @NonNull public @NonNull jakarta.mail.Session session()
      Specified by:
      session in interface SessionProvider
      Returns:
      Get session