Class MailSendingMessageHandler

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Ordered, ExpressionCapable, Orderable, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>

public class MailSendingMessageHandler extends AbstractMessageHandler
A MessageHandler implementation for sending mail.

If the Message is an instance of MailMessage, it will be passed as-is. If the Message payload is a byte array, it will be passed as an attachment, and in that case, the MailHeaders.ATTACHMENT_FILENAME header is required. Otherwise, a String type is expected, and its content will be used as the text within a SimpleMailMessage.

Author:
Marius Bogoevici, Mark Fisher, Oleg Zhurakousky, Artem Bilan
See Also: