You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/03/16 10:36:00 UTC

[jira] [Commented] (CAMEL-14595) camel-mail - Allow to use headers for additional mail properties

    [ https://issues.apache.org/jira/browse/CAMEL-14595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17060104#comment-17060104 ] 

Claus Ibsen commented on CAMEL-14595:
-------------------------------------

                from("scheduler:start?delay=1000")
                    .setBody(constant("Hello"))
                    .setHeader("mail.smtp.from", method(UUID.class, "randomUUID"))
                    .to("smtp://localhost:1234?to=test@test.com");


> camel-mail - Allow to use headers for additional mail properties
> ----------------------------------------------------------------
>
>                 Key: CAMEL-14595
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14595
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mail
>         Environment: See CAMEL-14579
> We should detect custom headers starting with mail. as key. And then use those in the additional properties map for the mail sender (create new instance so its private).
> This allows to make the mail more dynamic but reuse same endpoint and producer.
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.2.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)