Warning

This component has been deprecated in favor to servicemix-mail component.

We currently support MIME email sending via JavaMail. The following example shows the configuration of the JavaMail email sender component.

Error formatting macro: snippet: java.lang.NullPointerException

We also support the simpler MailSender from Spring, such as to work with COS.

Error formatting macro: snippet: java.lang.NullPointerException

Using message properties

The default configuration of the email sender uses the supplied message properties to figure out how to send the email. The following code shows this in use

Error formatting macro: snippet: java.lang.NullPointerException

Using expressions

You can also use Expressions to configure the various properties on the email. The following example uses a mixture of constant expression and XPath expressions. This means that the sender component will use XPath to extract information from the message content and use that to create the email.

Error formatting macro: snippet: java.lang.NullPointerException

This example uses property expressions; that is extracting properties from the message.

Error formatting macro: snippet: java.lang.NullPointerException
  • No labels