The MAIL component enables sending emails. Learn how to use the MAIL component.


To install the camel-mail library,  use the managed libraries repository.

  camel-mail can also be installed manually

Create a new library with the following jars (in this order):

Camel version Library jars


Now it's possible to create a route that uses this component. Here is the definition of the route:

<routes xmlns="" xmlns:u="">
        <from uri="timer:foo?repeatCount=1"/>
        <!-- The subject is stored in a header -->
        <setHeader headerName="subject">
            <constant>Very important message</constant>
        <!-- The recipient is also in a header -->
        <setHeader headerName="to">
        <!-- The message of the email is the body -->
            <constant>This is an important message</constant>
        <!-- Send the email -->
        <to uri="smtps://{{smtpUser}}&amp;password={{smtpP@ssword}}"/>

Related Links