<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to test email notifications? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558761#M215687</link>
    <description>&lt;P&gt;Hey James,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This is something I've attempted to solve a number of times over the years. &amp;nbsp; My lowest friction solution is to get rid of "forward all email here" and instead simply ask each outbound email if they're sending to an "authorized" person. &amp;nbsp; How do we control authorization? &amp;nbsp; By a new property on the group table.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Net effect: &amp;nbsp; You can decide who gets sub-prod notifications or not, and those people receive ONLY the notifications they were targeted to receive. &amp;nbsp; OOB you can only get everything or get nothing.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You can see the full solution on a blog I wrote here:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A title="Use Sub-Production Notifications Like a Boss" __default_attr="4358" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Use Sub-Production Notifications Like a Boss" href="https://www.servicenow.com/community?id=community_blog&amp;amp;sys_id=83bc6e25dbd0dbc01dcaf3231f96192d"&gt;Use Sub-Production Notifications Like a Boss&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 27 Aug 2015 16:46:02 GMT</pubDate>
    <dc:creator>Uncle Rob</dc:creator>
    <dc:date>2015-08-27T16:46:02Z</dc:date>
    <item>
      <title>How to test email notifications?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558758#M215684</link>
      <description>&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;We will have a number of testers in the test system at the same time next week and would like them to be able to see the email notifications generated by the system so that they can ensure the notifications were sent to the right people with the right content etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The problem is that we don't want to send any emails to users outside the testing team (which could easily happen due to some of our workflows).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Ideally, I would like to set up ServiceNow to forward all emails to the testing team. &amp;nbsp; The trouble with this is that the original email address is not preserved, so there is no way of knowing who the actual intended recipient was.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I was hoping I could modify the notification templates to include the original email address, but it seems that is not possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Any suggestions on how this could be easily achieved?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:28:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558758#M215684</guid>
      <dc:creator>jamesmcwhinney</dc:creator>
      <dc:date>2015-08-27T16:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to test email notifications?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558759#M215685</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The override for the email address occurs at the time the mail is *sent*. It gets inserted into the sys_email table with the correct addresses.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I'd put a before-insert business rule on sys_email which just appends the recipients (and CC and BCC lists, if they exist) to the body of the email. Don't change the recipients- the system will do that when the message is picked up to be sent (assuming you have set an override testing email address). Just copy them into the body.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:37:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558759#M215685</guid>
      <dc:creator>coryseering</dc:creator>
      <dc:date>2015-08-27T16:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to test email notifications?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558760#M215686</link>
      <description>&lt;P&gt;There is a property '&lt;SPAN style="color: #333333; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;"&gt;glide.email.test.user' in which you can give the emails to comma separated values of the emails to which the emails needs to go. &lt;A href="http://wiki.servicenow.com/index.php?title=Email_Properties#Outbound_Mail_Configuration" title="http://wiki.servicenow.com/index.php?title=Email_Properties#Outbound_Mail_Configuration"&gt;http://wiki.servicenow.com/index.php?title=Email_Properties#Outbound_Mail_Configuration&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Also, you can create a group and add all the testers to that group and update the property &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:44:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558760#M215686</guid>
      <dc:creator>manikorada</dc:creator>
      <dc:date>2015-08-27T16:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to test email notifications?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558761#M215687</link>
      <description>&lt;P&gt;Hey James,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This is something I've attempted to solve a number of times over the years. &amp;nbsp; My lowest friction solution is to get rid of "forward all email here" and instead simply ask each outbound email if they're sending to an "authorized" person. &amp;nbsp; How do we control authorization? &amp;nbsp; By a new property on the group table.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Net effect: &amp;nbsp; You can decide who gets sub-prod notifications or not, and those people receive ONLY the notifications they were targeted to receive. &amp;nbsp; OOB you can only get everything or get nothing.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You can see the full solution on a blog I wrote here:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A title="Use Sub-Production Notifications Like a Boss" __default_attr="4358" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Use Sub-Production Notifications Like a Boss" href="https://www.servicenow.com/community?id=community_blog&amp;amp;sys_id=83bc6e25dbd0dbc01dcaf3231f96192d"&gt;Use Sub-Production Notifications Like a Boss&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:46:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558761#M215687</guid>
      <dc:creator>Uncle Rob</dc:creator>
      <dc:date>2015-08-27T16:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to test email notifications?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558762#M215688</link>
      <description>&lt;P&gt;I know its the only thing available OOB, but its terrible. &amp;nbsp; It sends ALL email to those addresses, not just the emails targeted to them.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:46:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558762#M215688</guid>
      <dc:creator>Uncle Rob</dc:creator>
      <dc:date>2015-08-27T16:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to test email notifications?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558763#M215689</link>
      <description>&lt;P&gt;Thank you so much!!!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;That is exactly what I needed.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I created an insert business rule against the Emails [sys_email] table with the following in the advanced script:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;function onBefore(current, previous) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; //This function will be automatically called when this rule is processed.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; current.body = "&amp;lt;H2&amp;gt;This email originally intended for (To: " + current.recipients + ") (Cc: " + current.blind_copy + ")&amp;lt;/H2&amp;gt;&amp;lt;HR&amp;gt;" + current.body;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Aug 2015 18:13:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-test-email-notifications/m-p/1558763#M215689</guid>
      <dc:creator>jamesmcwhinney</dc:creator>
      <dc:date>2015-08-27T18:13:31Z</dc:date>
    </item>
  </channel>
</rss>

