<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to define 'from' inIvy.Mail with spaces and special characters?</title><link>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters</link><description>&lt;p&gt;Dear all,
Sorry for creating a new topic.
My original question was this one &lt;a href="https://answers.axonivy.com/questions/3431/how-to-define-sender-name-in-axon-ivy-mail"&gt;https://answers.axonivy.com/questions/3431/how-to-define-sender-name-in-axon-ivy-mail&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I wanted to define a sender name in Ivy.Mail. And Thank &lt;a href="https://answers.axonivy.com/users/11/reto-weiss"&gt;@Reto Weiss&lt;/a&gt;, your instruction helped. But the problem is that I can't send an email defined 'from' with spaces and special character.
The text I tried was 'Sony AG, john.smith@sony.ch'.
Many thanks,&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 27 Sep 2018 06:11:35 -0400</lastBuildDate><item><title>Answer by nhthang</title><link>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters/3449</link><description>&lt;p&gt;Dear &lt;a href="https://answers.axonivy.com/users/11/reto-weiss"&gt;&lt;a href="https://answers.axonivy.com/users/11/reto-weiss"&gt;@Reto Weiss&lt;/a&gt;&lt;/a&gt;, &lt;a href="https://answers.axonivy.com/users/17/reguel-wermelinger"&gt;@Reguel&lt;/a&gt;-Wermelinger, &lt;/p&gt;
&lt;p&gt;(Sorry, This is actually a comment (not the answer like its function), because I need to add a picture to explain my problem more clearly.)&lt;/p&gt;
&lt;p&gt;Continue with above problem (I &amp;amp; asker are in the same team :))  ),&lt;/p&gt;
&lt;p&gt;This is my email step information, before add value for From field, we have value for Subject, Reply to, To, and in this time, email function work perfectly.&lt;/p&gt;
&lt;p&gt;now, I add &lt;strong&gt;&amp;lt;%=in.from=&amp;gt;&lt;/strong&gt; to From field in E-mail Header (as in picture),
&lt;strong&gt;in.from&lt;/strong&gt; is &lt;strong&gt;String type&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;And before go to this Email step, I try to set your value &lt;strong&gt;Sony AG &amp;lt; john.smith@sony.ch&amp;gt;&lt;/strong&gt; to variable &lt;strong&gt;in.from&lt;/strong&gt;, but it's not work. Email cannot be sent.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;But If I set &lt;strong&gt;Sony AG &amp;lt; john.smithsony.ch&amp;gt;&lt;/strong&gt; , It means &lt;strong&gt;no @ character&lt;/strong&gt; here and it's work. Really so strange, I don't know why.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Is there any wrong here?&lt;/p&gt;
&lt;p&gt;Thank you very much for the reading.&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="https://answers.axonivy.com/upfiles/email_function.PNG"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nhthang</dc:creator><pubDate>Thu, 27 Sep 2018 06:11:35 -0400</pubDate><guid>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters/3449</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters/3447</link><description>&lt;p&gt;Hi An&lt;/p&gt;
&lt;p&gt;It works for me if I use the following format (&lt;a href="http://www.ietf.org/rfc/rfc822.txt"&gt;RFC822&lt;/a&gt;):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Sony AG &amp;lt;john.smith@sony.ch&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;More Information can be found on the following class:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;javax.mail.internet.InternetAddress
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Regards&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Wed, 26 Sep 2018 08:57:35 -0400</pubDate><guid>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters/3447</guid></item></channel></rss>