<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Linebreak in email body via a!safeLink</title><link>https://community.appian.com/discussions/f/user-interface/17925/linebreak-in-email-body-via-a-safelink</link><description>Hello, 
 I am currently trying to compose a new Outlook email upon clicking a link from the Appian interface. I am unable to insert a line break in the body of the email. Any thoughts on how to resolve this issue ? 
 Thanks, 
 Sidd</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Linebreak in email body via a!safeLink</title><link>https://community.appian.com/thread/131465?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 00:52:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91960db8-cf56-4dce-b3f4-2cbc3bf839bb</guid><dc:creator>Sayali Punse</dc:creator><description>&lt;p&gt;Thanks Stefan!&lt;/p&gt;
&lt;p&gt;The &lt;span&gt;urlwithparameters()&amp;nbsp;function worked for generating the proper url to be used in the safeLink(). However, it still could not get rid of the &amp;lt;div&amp;gt; and &amp;lt;br&amp;gt; tags, so I used striphtml() to achieve that.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The max char limit is 1274 as per my testing. I wish it was more!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;local!url: urlwithparameters( &lt;br /&gt; concat(&amp;quot;mailto:&amp;quot;,ri!emailMessage.to),&lt;br /&gt; {&amp;quot;cc&amp;quot;,&amp;quot;subject&amp;quot;,&amp;quot;body&amp;quot;},&lt;br /&gt; {ri!emailMessage.cc,ri!emailMessage.subject,striphtml(ri!emailMessage.body)}&lt;br /&gt; )&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linebreak in email body via a!safeLink</title><link>https://community.appian.com/thread/131406?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 07:53:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:90303c6b-3e58-4e2a-92cb-e1621af00346</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Any text you want to put in that mailto URL needs to be URL encoded. Use the function urlwithparameters() to do that. Then your line breaks will be encoded correctly. Beware that there are certain limitations in the length of that URL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linebreak in email body via a!safeLink</title><link>https://community.appian.com/thread/131389?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 00:32:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a8ba7299-dbc6-40a5-86bf-cbbecb648933</guid><dc:creator>Sayali Punse</dc:creator><description>&lt;p&gt;Hi, I know this is an old thread but need help on this topic from the community.&lt;/p&gt;
&lt;p&gt;I am using mailto to open an email in Outlook with body pre-populated as well. However, I am not sure how I can introduce line breaks using a rich text editor to compose a body. Has someone tried this before?&lt;/p&gt;
&lt;p&gt;Also, are there any character limitations when we use mailto?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linebreak in email body via a!safeLink</title><link>https://community.appian.com/thread/70544?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 16:41:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6975b4c4-b3e5-4932-b946-eec2a9f26ce7</guid><dc:creator>Siddharth</dc:creator><description>&lt;p&gt;Thanks Ashvin - it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linebreak in email body via a!safeLink</title><link>https://community.appian.com/thread/70543?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 16:34:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49eaea7e-20ff-483a-b184-85cdb2919530</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;confirmed - works for me in chrome / outlook.&amp;nbsp; It also works for me with just &amp;quot;%0A&amp;quot;.&lt;/p&gt;
&lt;p&gt;I was originally going to comment that Appian itself likely strips out any special characters (like newline) from the URI, but I wasn&amp;#39;t clear whether there was a URL encoding that could be used - so thanks for clarifying.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linebreak in email body via a!safeLink</title><link>https://community.appian.com/thread/70542?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 16:25:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c285b5f9-657b-4b1f-82d0-c223f8955ab3</guid><dc:creator>Ashvin Kapur</dc:creator><description>&lt;p&gt;Use &amp;quot;%0D%0A&amp;quot; as a line break. Replace &amp;quot;char(10)&amp;quot; with &amp;quot;&lt;span&gt;%0D%0A&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!richTextDisplayField(
    value: {
      a!richTextItem(
        text: &amp;quot;Click to send Email &amp;quot;,
        link: a!safeLink(
          uri: concat(
            &amp;quot;mailto://abc@xyz.com?subject=Test Email &amp;amp;cc=qwe@xyz.com &amp;amp;Body=&amp;quot;,
            &amp;quot;Hello &amp;quot; &amp;amp; &amp;quot;%0D%0A&amp;quot; &amp;amp; &amp;quot;user&amp;quot;
          )
        ),
        size: &amp;quot;MEDIUM&amp;quot;
      )
    }
  )
}&lt;/pre&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>