Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleSender endpoint attributes
borderStylesolidbgColor='lighblue'

Name

Type

Description

Default

connection

string

sets the connection information

null (must be spec'd)

sender

string

defines the sender address of the mail

no-reply@localhost

receiver

string

defines the receiver address of the mail

null

marshaler

class

org.apache.servicemix.mail.marshaler.AbstractMailMarshaler

DefaultMailMarshaler

debugMode

boolean

sets the debug mode for the javamail api

false

ignoreTOProperty

boolean

an existing TO address in the IN message will be ignored

false

customTrustManagers

string

sets one or more custom trust managers for use with ssl

null

...

If there is a TO property in the normalized message, then it will be used.
If this property is missing, then the pre-configured receiver will be used.

Warning
titleCommon pitfall regarding the receiver

If you are just setting up a mail-bridge (means just a poller connected to a sender for mail forwarding) you will need
to set the sender property ignoreTOProperty to true, otherwise the receiver will be the receiver of the original mail.
That would just forward the original mail to the account you are polling from generating a nice mail loop. Be warned!
The ignoreTOProperty is available in servicemix-mail-2008.02 and above only!
If you are using an older version you need to write your own mail marshaler to fix this problem.

For all xbean file endpoint configuration take a look at Xml schemas

...