blob: 3487d630269fa717db7808b8b63492f0d0686c2f [file] [log] [blame]
h2. servicemix-mail
h3. Overview
he ServiceMix Mail component provides support for receiving and sending mails via the enterprise service bus.
h4. Namespace and xbean.xml
The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/mail/1.0}}. This is an example of an {{xbean.xml}} file with a namespace definition with prefix {{bean}}.
{pygmentize:lang=xml}
<beans xmlns:mail="http://servicemix.apache.org/mail/1.0">
<!-- add mail:poller and mail:sender definitions here -->
</beans>
{pygmentize}
h4. Endpoint types
The servicemix-mail component defines two endpoint type:
- {{mail:poller}} :: Connect to a POP3 or IMAP server and send a MessageExchange for every mail
- {{mail:sender}} :: Connect to an SMTP server and send a mail for every JBI MessageExchange it receives
h3. {{mail:poller}}
h4. Endpoint properties
{include:jbi/components/_servicemix-mail-poller.conf}
h3. {{mail:sender}}
h4. Endpoint properties
{include:jbi/components/_servicemix-mail-sender.conf}