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 Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
javamail prefix. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEnabled
(boolean enabled) If Mailjet integration is enabled.void
setProperties
(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).
-
Field Details
-
PREFIX
javamail prefix.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
JavaMailConfigurationProperties
public JavaMailConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.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
- Specified by:
getProperties
in interfaceJavaMailConfiguration
- 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
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)
-