You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pa...@apache.org on 2018/02/05 21:03:36 UTC

[camel] branch camel-2.19.x updated: camel-mail: make MailConfiguration#setTo set the to field

This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch camel-2.19.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.19.x by this push:
     new 0c62242  camel-mail: make MailConfiguration#setTo set the to field
0c62242 is described below

commit 0c622422812590de52ec1d2fa0215c6bd72e9678
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Mon Feb 5 22:00:30 2018 +0100

    camel-mail: make MailConfiguration#setTo set the to field
---
 .../main/java/org/apache/camel/component/mail/MailConfiguration.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConfiguration.java
index 2ab4b26..2c4a5df 100644
--- a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConfiguration.java
+++ b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConfiguration.java
@@ -508,7 +508,7 @@ public class MailConfiguration implements Cloneable {
      * Sets the To email address. Separate multiple email addresses with comma.
      */
     public void setTo(String address) {
-        this.to = to;
+        this.to = address;
         recipients.put(Message.RecipientType.TO, address);
     }
 

-- 
To stop receiving notification emails like this one, please contact
pascalschumacher@apache.org.