...
Note | ||
---|---|---|
| ||
Note that this component is only available in releases >= 3.2.13. |
Installation
Installing the servicemix-mail component can be done in several ways:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<mail:sender service="test:myMailService"
endpoint="senderEndpoint"
sender="no-reply@servicemix.org"
receiver="testreceiver@targethost.com"
connection="smtp://lhein@testserver?password=myPass" />
|
...
Info | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
|
...
if there is a preconfigured sender for the endpoint from xbean.xml, it will be used
else if MSG_TAG_FROM is defined in the message properties, then it will be used
else the method getDefaultSender() of the marshaler is invoked
How is the receiver determined?
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.
For all xbean file endpoint configuration take a look at Xml schemas
...