@Configuration public class MailConfiguration extends Object implements BaseConfiguration
BaseConfiguration.ClusterDisabledCondition, BaseConfiguration.ClusterEnabledCondition, BaseConfiguration.PROPERTY_SOURCE_LOCATIONS
ADDONS_CONFIGURATION_COMPONENT_SCAN_PACKAGE, CLUSTER_ENABLE_PROPERTY_NAME, CONFIGURATION_ORDER_DELTA, CUSTOM_CONFIGURATION_COMPONENT_SCAN_PACKAGE, DEFAULT_WEB_APPLICATION_INITIALIZER_ORDER, ONE_CONFIGURATION_ORDER, PROPERTY_SOURCES_CUSTOM_APPLICATION_CONTEXT_INITIALIZER_ORDER, SECURITY_CONFIGURATION_ORDER, SECURITY_WEB_APPLICATION_INITIALIZER_ORDER, SESSION_WEB_APPLICATION_INITIALIZER_ORDER, VIS_CONFIGURATION_ORDER
Constructor and Description |
---|
MailConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.mail.javamail.JavaMailSender |
mailSender(String mailSmtpHost,
int mailSmtpPort,
String mailSmtpUsername,
String mailSmtpPassword,
String mailSmtpEncoding,
boolean mailSmtpDebug,
String mailSmtpTransportProtocol,
String mailSmtpAuth,
String mailSmtpStarttlsEnable) |
void |
postConstruct() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfigurationCustomisations, getObjectOrDefault
@PostConstruct public void postConstruct() throws Exception
Exception
@Bean public org.springframework.mail.javamail.JavaMailSender mailSender(@Value(value="${mail.smtp.host:}") String mailSmtpHost, @Value(value="${mail.smtp.port:0}") int mailSmtpPort, @Value(value="${mail.smtp.username:}") String mailSmtpUsername, @Value(value="${mail.smtp.password:}") String mailSmtpPassword, @Value(value="${mail.smtp.encoding:}") String mailSmtpEncoding, @Value(value="${mail.smtp.debug:false}") boolean mailSmtpDebug, @Value(value="${mail.smtp.transport-protocol:}") String mailSmtpTransportProtocol, @Value(value="${mail.smtp.auth:}") String mailSmtpAuth, @Value(value="${mail.smtp.enable-starttls:}") String mailSmtpStarttlsEnable)
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.