public final class Mail extends Object
public static MailSendingMessageHandlerSpec outboundAdapter()
MailSendingMessageHandlerSpec factory.
Note: the Java Mail properties must be provided with the particular host.MailSendingMessageHandlerSpec instance.MailSendingMessageHandlerSpec.javaMailProperties(java.util.Properties)public static MailSendingMessageHandlerSpec outboundAdapter(@Nullable String host)
MailSendingMessageHandlerSpec factory based on provide host.host - the mail host to connect to.MailSendingMessageHandlerSpec instance.public static MailSendingMessageHandler outboundAdapter(MailSender mailSender)
MailSendingMessageHandler
based on provided MailSender.mailSender - the MailSender to use mail sending operations.MailSendingMessageHandler instance.public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter()
Pop3MailInboundChannelAdapterSpec factory using a default
Pop3MailReceiver.Pop3MailInboundChannelAdapterSpec instance.public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(Pop3MailReceiver pop3MailReceiver)
Pop3MailInboundChannelAdapterSpec factory based on the provided
Pop3MailReceiver.pop3MailReceiver - the Pop3MailReceiver to use.Pop3MailInboundChannelAdapterSpec instance.public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(String url)
Pop3MailInboundChannelAdapterSpec factory based on the provided url.url - the pop3 urlPop3MailInboundChannelAdapterSpec instance.public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(String host, String username, String password)
Pop3MailInboundChannelAdapterSpec factory based on the provided host,
user, password and the default port.host - the host.username - the user.password - the password.Pop3MailInboundChannelAdapterSpec instance.public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(String host, int port, String username, String password)
Pop3MailInboundChannelAdapterSpec factory based on the provided host,
port, user, and password.host - the host.port - the port.username - the user.password - the password.Pop3MailInboundChannelAdapterSpec instance.public static ImapMailInboundChannelAdapterSpec imapInboundAdapter()
ImapMailInboundChannelAdapterSpec factory using a default ImapMailReceiver.ImapMailInboundChannelAdapterSpec instance.public static ImapMailInboundChannelAdapterSpec imapInboundAdapter(ImapMailReceiver imapMailReceiver)
ImapMailInboundChannelAdapterSpec factory based on the provided ImapMailReceiver.imapMailReceiver - the ImapMailReceiver to use.ImapMailInboundChannelAdapterSpec instance.public static ImapMailInboundChannelAdapterSpec imapInboundAdapter(String url)
ImapMailInboundChannelAdapterSpec factory based on the provided url.url - the imap urlImapMailInboundChannelAdapterSpec instance.public static ImapIdleChannelAdapterSpec imapIdleAdapter()
ImapIdleChannelAdapterSpec factory using a default ImapMailReceiver.ImapIdleChannelAdapterSpec instance.public static ImapIdleChannelAdapterSpec imapIdleAdapter(String url)
ImapIdleChannelAdapterSpec factory based on the provided url.url - the imap urlImapIdleChannelAdapterSpec instance.public static ImapIdleChannelAdapterSpec imapIdleAdapter(ImapMailReceiver imapMailReceiver)
ImapIdleChannelAdapterSpec factory based on the provided ImapMailReceiver.imapMailReceiver - the ImapMailReceiver to use.ImapIdleChannelAdapterSpec instance.public static MailHeadersBuilder headers()
MailHeadersBuilder factory.public static MailToStringTransformer toStringTransformer()
MailToStringTransformer factory.public static MailToStringTransformer toStringTransformer(String charset)
MailToStringTransformer factory.charset - the charset to use when the default is not appropriate.