@Component(value="cuba_MailSender")
public class CubaMailSender
extends org.springframework.mail.javamail.JavaMailSenderImpl
Modifier and Type | Field and Description |
---|---|
protected EmailerConfig |
config |
static java.lang.String |
NAME |
Constructor and Description |
---|
CubaMailSender() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Properties |
createJavaMailProperties() |
java.lang.String |
getHost() |
java.lang.String |
getPassword() |
int |
getPort() |
javax.mail.Session |
getSession() |
java.lang.String |
getUsername() |
protected boolean |
includeJavaMailProperty(java.lang.String name,
java.util.Set excludedProperties) |
void |
setConfiguration(Configuration configuration) |
void |
setHost(java.lang.String host) |
void |
setPassword(java.lang.String password) |
void |
setPort(int port) |
void |
setUsername(java.lang.String username) |
void |
updateSession() |
connectTransport, createMimeMessage, createMimeMessage, doSend, getDefaultEncoding, getDefaultFileTypeMap, getJavaMailProperties, getProtocol, getTransport, send, send, send, send, send, send, setDefaultEncoding, setDefaultFileTypeMap, setJavaMailProperties, setProtocol, setSession, testConnection
public static final java.lang.String NAME
protected EmailerConfig config
@Inject public void setConfiguration(Configuration configuration)
public java.lang.String getHost()
getHost
in class org.springframework.mail.javamail.JavaMailSenderImpl
public void setHost(java.lang.String host)
setHost
in class org.springframework.mail.javamail.JavaMailSenderImpl
public int getPort()
getPort
in class org.springframework.mail.javamail.JavaMailSenderImpl
public void setPort(int port)
setPort
in class org.springframework.mail.javamail.JavaMailSenderImpl
public java.lang.String getUsername()
getUsername
in class org.springframework.mail.javamail.JavaMailSenderImpl
public void setUsername(java.lang.String username)
setUsername
in class org.springframework.mail.javamail.JavaMailSenderImpl
public java.lang.String getPassword()
getPassword
in class org.springframework.mail.javamail.JavaMailSenderImpl
public void setPassword(java.lang.String password)
setPassword
in class org.springframework.mail.javamail.JavaMailSenderImpl
public javax.mail.Session getSession()
getSession
in class org.springframework.mail.javamail.JavaMailSenderImpl
public void updateSession()
protected java.util.Properties createJavaMailProperties()
protected boolean includeJavaMailProperty(java.lang.String name, java.util.Set excludedProperties)