public class TestMailSender extends CubaMailSender
config, NAME
Constructor and Description |
---|
TestMailSender() |
Modifier and Type | Method and Description |
---|---|
void |
clearBuffer() |
void |
failPlease() |
javax.mail.internet.MimeMessage |
fetchSentEmail() |
int |
getBufferSize() |
boolean |
isEmpty() |
void |
send(javax.mail.internet.MimeMessage mimeMessage) |
void |
workNormallyPlease() |
createJavaMailProperties, getHost, getPassword, getPort, getSession, getUsername, includeJavaMailProperty, setConfiguration, setHost, setPassword, setPort, setUsername, updateSession
connectTransport, createMimeMessage, createMimeMessage, doSend, getDefaultEncoding, getDefaultFileTypeMap, getJavaMailProperties, getProtocol, getTransport, send, send, send, send, send, setDefaultEncoding, setDefaultFileTypeMap, setJavaMailProperties, setProtocol, setSession, testConnection
public void clearBuffer()
public int getBufferSize()
public javax.mail.internet.MimeMessage fetchSentEmail()
public void send(javax.mail.internet.MimeMessage mimeMessage) throws org.springframework.mail.MailException
send
in interface org.springframework.mail.javamail.JavaMailSender
send
in class org.springframework.mail.javamail.JavaMailSenderImpl
org.springframework.mail.MailException
public boolean isEmpty()
public void failPlease()
public void workNormallyPlease()