<?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 10:41:33 -0400</lastBuildDate><item><title>Comment by nhthang on nhthang's answer</title><link>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3458</link><description>&lt;p&gt;I will, Thanks for the supporting!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nhthang</dc:creator><pubDate>Thu, 27 Sep 2018 10:41:33 -0400</pubDate><guid>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3458</guid></item><item><title>Comment by Reto Weiss on nhthang's answer</title><link>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3457</link><description>&lt;p&gt;Hi 
This seems to be more a support case than a Q&amp;amp;A. Can you please start a support ticket about this. You can simple do this by sending a mail to support@axonivy.com. 
Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Thu, 27 Sep 2018 09:14:53 -0400</pubDate><guid>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3457</guid></item><item><title>Comment by nhthang on nhthang's answer</title><link>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3454</link><description>&lt;p&gt;ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.BackgroundActivityExecutorAdapter.executeInProcessElementRequest(BackgroundActivityExecutorAdapter.java:50), ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.ProcessElementRequestExecutorAdapter.lambda$0(ProcessElementRequestExecutorAdapter.java:44), ch.ivyteam.util.callable.AbstractExecutionContext.lambda$2(AbstractExecutionContext.java:44), ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16), ch.ivyteam.util.callable.AbstractExecutionContext.callUncheckedInContext(AbstractExecutionContext.java:57),...]&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nhthang</dc:creator><pubDate>Thu, 27 Sep 2018 08:41:34 -0400</pubDate><guid>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3454</guid></item><item><title>Comment by nhthang on nhthang's answer</title><link>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3453</link><description>&lt;p&gt;[ch.ivyteam.ivy.bpm.error.BpmErrorBuilder.build(BpmErrorBuilder.java:204), ch.ivyteam.ivy.bpm.engine.restricted.error.BpmErrorConverter.toBpmError(BpmErrorConverter.java:44), ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.BackgroundActivityExecutorAdapter.handleErrorAndTimeout(BackgroundActivityExecutorAdapter.java:80), ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.BackgroundActivityExecutorAdapter.handleBackgroundOperationResult(BackgroundActivityExecutorAdapter.java:66),&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nhthang</dc:creator><pubDate>Thu, 27 Sep 2018 08:41:28 -0400</pubDate><guid>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3453</guid></item><item><title>Comment by nhthang on nhthang's answer</title><link>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3452</link><description>&lt;p&gt;My Ivy version: 7.1.0 (Weisshorn) , email cannot be sent, In the same process file here, we have an Error start event to catch all the errors happend, there are some logs here which we print by object error.stackTrace: (I separate by some below comments):
[ch.ivyteam.ivy.bpm.error.BpmErrorBuilder.build(BpmErrorBuilder.java:204), ch.ivyteam.ivy.bpm.engine.restricted.error.BpmErrorConverter.toBpmError(BpmErrorConverter.java:44), ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.BackgroundActivityExecutorAdapter.handleErrorAndTimeout(BackgroundActivityExecutorAdapter.java:80), 
...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nhthang</dc:creator><pubDate>Thu, 27 Sep 2018 08:40:52 -0400</pubDate><guid>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3452</guid></item><item><title>Comment by Reto Weiss on nhthang's answer</title><link>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3450</link><description>&lt;p&gt;This works for me with version 7.0.7 Designer. Which version are you using? What means does not work? Is there an error? Is there a log that tells it is not working? Anything?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Thu, 27 Sep 2018 06:35:37 -0400</pubDate><guid>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3450</guid></item><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><item><title>Comment by Reto Weiss on an_nguyen's question</title><link>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3446</link><description>&lt;p&gt;Hi An
Can you provide me the code you use with Java Mail to set the text?
Thanks&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:32:53 -0400</pubDate><guid>https://answers.axonivy.com/questions/3444/how-to-define-from-inivy-mail-with-spaces-and-special-characters#3446</guid></item></channel></rss>