This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 962dd2c Regen 962dd2c is described below commit 962dd2ca0dcfdb75bc7b504917c7749cff3a4fe0 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon Mar 16 11:55:50 2020 +0100 Regen --- .../components/modules/ROOT/pages/mail-component.adoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/components/modules/ROOT/pages/mail-component.adoc b/docs/components/modules/ROOT/pages/mail-component.adoc index 32283996..d426398 100644 --- a/docs/components/modules/ROOT/pages/mail-component.adoc +++ b/docs/components/modules/ROOT/pages/mail-component.adoc @@ -714,4 +714,23 @@ These parameters should help to prevent bad performance when working with folder In previous versions these parameters have been evaluated too late, so that big mailboxes could still cause performance problems. With Camel 3.1 these parameters are evaluated earlier during the poll to avoid these problems. +== Using headers with additional Java Mail Sender properties + +*Since Camel 3.2* + +When sending mails, then you can provide dynamic java mail properties for the `JavaMailSender` from +the Exchange as message headers with keys starting with `java.smtp.`. + +You can set any of the `java.smtp` properties which you can find in the Java Mail documentation. + +For example to provide a dynamic uuid in `java.smtp.from` (SMTP MAIL command): + +[source,java] +---- + .setHeader("from", constant("reply...@foo.com")); + .setHeader("java.smtp.from", method(UUID.class, "randomUUID")); + .to("smtp://mymailserver:1234"); +---- + + include::camel-spring-boot::page$mail-starter.adoc[]