Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9244DBC19 for ; Sat, 14 Jan 2012 11:21:42 +0000 (UTC) Received: (qmail 90822 invoked by uid 500); 14 Jan 2012 11:21:41 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 90720 invoked by uid 500); 14 Jan 2012 11:21:40 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 90712 invoked by uid 99); 14 Jan 2012 11:21:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jan 2012 11:21:39 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.mueller@gmail.com designates 209.85.216.52 as permitted sender) Received: from [209.85.216.52] (HELO mail-qw0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jan 2012 11:21:34 +0000 Received: by qadc11 with SMTP id c11so1514277qad.11 for ; Sat, 14 Jan 2012 03:21:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=h1/FN29qX8lEXXemomtPF3Yzx5b2wSD+3mjEHcU1kU0=; b=xl37ONHSnmMjsO4xcmLXlbOss7G9qruvviJH5oqeU6KThKcoM1Qd6hp6+Rqb6QNamJ hCIPrzH9mq+q8d6kn4PdG3x3C0kDis26hRSDJnAVRxE7uVoMNf9Bl3OGSafKmvB7ri/P oC6PpQyIwSv8E7jWq0NRzwDgrBPMyrezRy1xM= MIME-Version: 1.0 Received: by 10.224.105.204 with SMTP id u12mr2883812qao.84.1326540072569; Sat, 14 Jan 2012 03:21:12 -0800 (PST) Received: by 10.229.50.83 with HTTP; Sat, 14 Jan 2012 03:21:12 -0800 (PST) In-Reply-To: <1326501178885-5144138.post@n5.nabble.com> References: <1326501178885-5144138.post@n5.nabble.com> Date: Sat, 14 Jan 2012 12:21:12 +0100 Message-ID: Subject: Re: SMTP - Specify Name and Email in the From element using Spring From: =?ISO-8859-1?Q?Christian_M=FCller?= To: users@camel.apache.org Content-Type: multipart/alternative; boundary=20cf3074d99cce4a8304b67b2d6e --20cf3074d99cce4a8304b67b2d6e Content-Type: text/plain; charset=ISO-8859-1 Hello Michael! Tests [1] are always a good source of knowledge. The same is of course possible with the XML DSL. Make sure you escape all characters which you cannot use in XML. This not means "Camel does not like the '<' character", it's simple not a valid XML you build... [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailNameAndEmailInRecipientTest.java Best, Christian On Sat, Jan 14, 2012 at 1:32 AM, MichaelAtSAG wrote: > How do I specify both a Name and Email in the From > > > > &amp;subject=Inventory > shortage alert&amp;from=<Event Notifier> eventReply@company.com" /> > > > Camel does not like the '<' character in the 'from' value. > > Caused by: org.xml.sax.SAXParseException: The value of attribute "uri" > associated with an element type "null" must not contain the '<' character. > > -- > View this message in context: > http://camel.465427.n5.nabble.com/SMTP-Specify-Name-and-Email-in-the-From-element-using-Spring-tp5144138p5144138.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --20cf3074d99cce4a8304b67b2d6e--