<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Email Title Format]]></title><description><![CDATA[<p dir="auto">Hello, I'm trying to make a custom email format and I've done almost everything, but I could not find were to modify the title:</p>
<p dir="auto"><img src="https://camo.nodebb.org/337d883659c231da19607a79535b267fd21fe496?url=https%3A%2F%2Fi.imgur.com%2F2jwLntS.jpg" alt="0_1500889359140_Email Title Format.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">I want to remove "Critical" and "id" from there and I didn't find where to make that modification. If can someone help me with that information...</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.mango-os.com/topic/2867/email-title-format</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 12:09:01 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2867.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Jul 2017 09:45:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Email Title Format on Fri, 28 Jul 2017 08:46:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phildunlap" aria-label="Profile: phildunlap">@<bdi>phildunlap</bdi></a> Thanks, I'll try that.</p>
<p dir="auto">I tried and works very well.</p>
]]></description><link>https://forum.mango-os.com/post/15095</link><guid isPermaLink="true">https://forum.mango-os.com/post/15095</guid><dc:creator><![CDATA[georgestefan]]></dc:creator><pubDate>Fri, 28 Jul 2017 08:46:14 GMT</pubDate></item><item><title><![CDATA[Reply to Email Title Format on Thu, 27 Jul 2017 17:28:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi George,</p>
<pre><code>&lt;#assign message&gt;&lt;@fmt message=evt.message/&gt;&lt;/#assign&gt;
&lt;@subject&gt;${message?replace("current undesired text", "desired text")}&lt;/@subject&gt;
</code></pre>
<p dir="auto">You can find other built in methods to manipulate the string, here, <a href="http://freemarker.org/docs/ref_builtins_string.html" rel="nofollow ugc">http://freemarker.org/docs/ref_builtins_string.html</a></p>
<p dir="auto">Another possibility is overriding your i18n.properties file. Then you can change the rendered text to whatever you want globally.</p>
]]></description><link>https://forum.mango-os.com/post/15094</link><guid isPermaLink="true">https://forum.mango-os.com/post/15094</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 27 Jul 2017 17:28:33 GMT</pubDate></item><item><title><![CDATA[Reply to Email Title Format on Thu, 27 Jul 2017 16:14:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phildunlap" aria-label="Profile: phildunlap">@<bdi>phildunlap</bdi></a> Hi again, I have another question about email formatting, I have an event handler which send me an email when a user log in, but the title is a little to complicated but I've seen that the title is generated with some code, it's there a way to have access and modify that?</p>
<p dir="auto">Here is a picture with the title:<br />
<img src="https://camo.nodebb.org/dc1e908ba46e0d0e9e617f2568d669ea57b7ed55?url=https%3A%2F%2Fi.imgur.com%2FWNZCdZ1.jpg" alt="0_1501171871599_title.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">and this is the code which generate that title:</p>
<pre><code>&lt;@fmt message=evt.message/&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/15093</link><guid isPermaLink="true">https://forum.mango-os.com/post/15093</guid><dc:creator><![CDATA[georgestefan]]></dc:creator><pubDate>Thu, 27 Jul 2017 16:14:53 GMT</pubDate></item><item><title><![CDATA[Reply to Email Title Format on Mon, 24 Jul 2017 18:40:08 GMT]]></title><description><![CDATA[<p dir="auto">Thanks again!</p>
]]></description><link>https://forum.mango-os.com/post/15047</link><guid isPermaLink="true">https://forum.mango-os.com/post/15047</guid><dc:creator><![CDATA[georgestefan]]></dc:creator><pubDate>Mon, 24 Jul 2017 18:40:08 GMT</pubDate></item><item><title><![CDATA[Reply to Email Title Format on Mon, 24 Jul 2017 18:22:12 GMT]]></title><description><![CDATA[<p dir="auto">Glad that did what you were looking for.</p>
<p dir="auto">Mongo will probably not give you the right search results, Mango is the name of the software.</p>
<p dir="auto">It is not possible in Mango 3.1 but we've added a way to put points into the FTL context in 3.2. I believe releasing that update is not too far away but I can't say for sure.</p>
<p dir="auto">In previous versions, the way to achieve this is having the event set a point in the context of a meta point, which computes the whole alarm message you would want with whatever points are in context and then this meta point has a change detector that the email is launched from. Or, you can cut out the first event detector and have the meta point take the source data point as its context, and then have the meta point raise the alarm with relevant other data.</p>
]]></description><link>https://forum.mango-os.com/post/15046</link><guid isPermaLink="true">https://forum.mango-os.com/post/15046</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 24 Jul 2017 18:22:12 GMT</pubDate></item><item><title><![CDATA[Reply to Email Title Format on Mon, 24 Jul 2017 18:47:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phildunlap" aria-label="Profile: phildunlap">@<bdi>phildunlap</bdi></a> Also I have another question, I don't know if this is possible, I am relative new to mango, for example if I have this email alarm for a compressor, can I display in email last values for Low Pressure and High Pressure?</p>
]]></description><link>https://forum.mango-os.com/post/15045</link><guid isPermaLink="true">https://forum.mango-os.com/post/15045</guid><dc:creator><![CDATA[georgestefan]]></dc:creator><pubDate>Mon, 24 Jul 2017 18:47:15 GMT</pubDate></item><item><title><![CDATA[Reply to Email Title Format on Mon, 24 Jul 2017 17:47:28 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a lot, this works great!</p>
]]></description><link>https://forum.mango-os.com/post/15044</link><guid isPermaLink="true">https://forum.mango-os.com/post/15044</guid><dc:creator><![CDATA[georgestefan]]></dc:creator><pubDate>Mon, 24 Jul 2017 17:47:28 GMT</pubDate></item><item><title><![CDATA[Reply to Email Title Format on Mon, 24 Jul 2017 16:09:25 GMT]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I think what you're looking for is probably...</p>
<p dir="auto"><code>&lt;@subject&gt;Hey - Stuff is happening with the automation system and I think you should know&lt;/@subject&gt;</code></p>
<p dir="auto">somewhere in your FTL. For a complete list of subject line options I'll have to refer you to the code a little, as the SubjectDirective class has some parameter options. Aliases override the default (but keep the Critical - and - id portions as you discovered probably), and the last SubjectDirective will probably have the final say.</p>
<p dir="auto"><a href="https://github.com/infiniteautomation/ma-core-public/blob/main/Core/src/com/serotonin/m2m2/email/SubjectDirective.java" rel="nofollow ugc">https://github.com/infiniteautomation/ma-core-public/blob/main/Core/src/com/serotonin/m2m2/email/SubjectDirective.java</a></p>
]]></description><link>https://forum.mango-os.com/post/15039</link><guid isPermaLink="true">https://forum.mango-os.com/post/15039</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 24 Jul 2017 16:09:25 GMT</pubDate></item></channel></rss>