Class MailSendingMessageHandler

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

@Deprecated(forRemoval=true, since="7.0") public class MailSendingMessageHandler extends MailSendingMessageHandler
Deprecated, for removal: This API element is subject to removal in a future version.
since 7.0 in favor of MailSendingMessageHandler
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, Ma Jiandong
See Also:
  • Constructor Details

    • MailSendingMessageHandler

      public MailSendingMessageHandler(MailSender mailSender)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a MailSendingMessageHandler.
      Parameters:
      mailSender - the MailSender instance to which this adapter will delegate.