Class JavaMailConfigurationProperties

java.lang.Object
io.micronaut.email.javamail.sender.JavaMailConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, JavaMailConfiguration

@ConfigurationProperties("javamail") public class JavaMailConfigurationProperties extends Object implements JavaMailConfiguration
ConfigurationProperties implementation of JavaMailConfiguration.
Since:
1.0.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • JavaMailConfigurationProperties

      public JavaMailConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      If Mailjet integration is enabled. Default value: `true`
      Parameters:
      enabled - True if security is enabled
    • getProperties

      @Nullable public @Nullable Map<String,Object> getProperties()
      Specified by:
      getProperties in interface JavaMailConfiguration
      Returns:
      properties as listed in Appendix A of the JavaMail spec (particularly mail.store.protocol, mail.transport.protocol, mail.host, mail.user, and mail.from)
    • setProperties

      public void setProperties(@MapFormat(transformation=FLAT) Map<String,Object> properties)
      properties as listed in Appendix A of the JavaMail spec (particularly mail.store.protocol, mail.transport.protocol, mail.host, mail.user, and mail.from).
      Parameters:
      properties - properties as listed in Appendix A of the JavaMail spec (particularly mail.store.protocol, mail.transport.protocol, mail.host, mail.user, and mail.from)