Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

The DefaultMailMarshaler (used if no other is set) will convert in the following way:

  • Headers of the mail are copied 1:1 into the message properties (and concatenated if needed)
  • if the mail has only plain text, the content will be put to property MSG_TAG_TEXT and to the message content
  • if the mail has only html, the content will be put to property MSG_TAG_HTML and to the message content
  • if the mail has both plain text and html, then both will be put to the right property and the content of the message will be the plain text
  • attachments are copied 1:1 from mail to message

The connection URI

The connection uri has to be specified in the following way:

...

The DefaultMailMarshaler (used if no other is set) will convert in the following way:

  • all properties of the message MSG_TAG_xxxx will be evaluated and used for preparing the mail
  • if MSG_TAG_TEXT and/or MSG_TAG_HTML are specified, then the content will be used for preparing the mail content
  • if there are no MSG_TAG_TEXT and MSG_TAG_HTML properties, the content of the message will be parsed and converted to the mail body as plain text or html content
  • attachments are copied 1:1 from mail to message

How is the sender determined?

...

Cookbook recipes

Children Display
pageSM:servicemix-mail cookbook
excerpttrueexcerptTypesimple

How to use customProperties

...

Info
titleSpecial message properties
borderStylesolidbgColor='lighblue'

Constant

String-Value

Description

MSG_TAG_TO

org.apache.servicemix.mail.to

The address(es) the mail was or will be sent to.

MSG_TAG_CC

org.apache.servicemix.mail.cc

The addess(es) the mail was or will be sent to as copy.

MSG_TAG_BCC

org.apache.servicemix.mail.bcc

The addess(es) the mail will be sent to as blind copy.

MSG_TAG_FROM

org.apache.servicemix.mail.from

The addess the mail was received from or will be used as sender.

MSG_TAG_SUBJECT

org.apache.servicemix.mail.subject

The subject of the received mail or for the mail to be sent.

MSG_TAG_REPLYTO

org.apache.servicemix.mail.replyto

The address to be used as reply-to.

MSG_TAG_SENTDATE

org.apache.servicemix.mail.sentdate

The date the email was sent.

MSG_TAG_MAIL_CONTENT_TYPE

org.apache.servicemix.mail.type

The mail mime type.

MSG_TAG_MAIL_CHARSET

org.apache.servicemix.mail.charset

The charset to use.

MSG_TAG_MAIL_USE_INLINE_ATTACHMENTS

org.apache.servicemix.mail.attachments.inline

Should attachments be set as inline

MSG_TAG_TEXT

org.apache.servicemix.mail.text

Contains the plain text content of the mail body if existing.

MSG_TAG_HTML

org.apache.servicemix.mail.html

Contains the html content of the mail body if existing. (or put the HTML as the content of the NMsg)

MSG_TAG_USER

org.apache.servicemix.mail.username

Contains the user name to use for authentication to outgoing mail server.

MSG_TAG_PASSWORD

org.apache.servicemix.mail.password

Contains the user password to use for authentication to outgoing mail server.

MSG_TAG_HOST

org.apache.servicemix.mail.host

Contains the host name of the mail server to use for outgoing mail.

MSG_TAG_PROTOCOL

org.apache.servicemix.mail.protocol

Contains the protocol to use for the outgoing mail.

MSG_TAG_PORT

org.apache.servicemix.mail.port

Contains the port number to use for the outgoing mail server.

Mail Content Types

These are the available content types:

...