<?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>topic Re: Sending email from Snap Creator Windows Server - how? in Data Protection</title>
    <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31156#M626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I am closer now than I was before, the SUCCESS_TRAP works, the SENDTRAP does not, basically the message needs to be single quoted to be interpreted properly by powershell, so I manually single quoted the SUCCESS_MSG, now trying to figure out how to do that for the MSG variable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes:&lt;/P&gt;&lt;P&gt;-Need to have the Snap Creator service started by a domain user rather than local user&lt;/P&gt;&lt;P&gt;-Need to have powershell.exe in your path&lt;/P&gt;&lt;P&gt;-Had to place single tick quotes around the message in the SUCCESS_MSG variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;###########################&lt;/P&gt;&lt;P&gt;### Event Configuration ###&lt;/P&gt;&lt;P&gt;###########################&lt;/P&gt;&lt;P&gt;NTAP_ASUP_ERROR_ENABLE=N&lt;/P&gt;&lt;P&gt;SENDTRAP=powershell.exe -noprofile -command "&amp;amp; {Send-MailMessage -to mattshearer@lab.stl -from snapcreator@dfm.lab.stl -subject &lt;SPAN style="text-decoration: underline;"&gt;%MSG&lt;/SPAN&gt; -SmtpServer smtp.lab.stl}" &amp;lt; nul&lt;/P&gt;&lt;P&gt;SUCCESS_TRAP=powershell.exe -noprofile -command "&amp;amp; {Send-MailMessage -to mattshearer@lab.stl -from snapcreator@dfm.lab.stl -subject %SUCCESS_MSG -SmtpServer smtp.lab.stl}" &amp;lt; nul&lt;/P&gt;&lt;P&gt;SUCCESS_MSG='INFO: NetApp Snap Creator Framework Backup for %SNAME ACTION: %ACTION POLICY: %SNAP_TYPE finished successfull'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2013 20:39:21 GMT</pubDate>
    <dc:creator>mshearer</dc:creator>
    <dc:date>2013-01-10T20:39:21Z</dc:date>
    <item>
      <title>Sending email from Snap Creator Windows Server - how?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31147#M624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="p1"&gt;I am attempting to send an email form Snap Creator and these commands work from the command line or from a batch file, however when I try to use the command via the event configuration the job gets to the event task and just stops at that point and never returns.&amp;nbsp; I have tried changing the SC server process to start as a service with a domain account rather than the local system account and have the same behavior.&amp;nbsp; So has anyone done this before or what exactly am I missing here?&amp;nbsp; This I would say is a powershell issue, but I am not 100% sure on that and just wanted to see if anyone else has some feedback.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;###########################&lt;/P&gt;&lt;P class="p1"&gt;### Event Configuration ###&lt;/P&gt;&lt;P class="p1"&gt;###########################&lt;/P&gt;&lt;P class="p1"&gt;NTAP_ASUP_ERROR_ENABLE=N&lt;/P&gt;&lt;P class="p1"&gt;SENDTRAP=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -command "&amp;amp; {Send-MailMessage -to mattshearer@lab.stl -from snapcreator@dfm.lab.stl -subject MSG -SmtpServer smtp.lab.stl}"&lt;/P&gt;&lt;P class="p1"&gt;SUCCESS_TRAP=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -command "&amp;amp; {Send-MailMessage -to mattshearer@lab.stl -from snapcreator@dfm.lab.stl -subject MSG -SmtpServer smtp.lab.stl}"&lt;/P&gt;&lt;P class="p1"&gt;SUCCESS_MSG=INFO: NetApp Snap Creator Framework Backup for %SNAME ACTION: %ACTION POLICY: %SNAP_TYPE finished successfull&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Just to make sure everything was working I confirmed that I could send events to windows events - &lt;A _jive_internal="true" href="https://community.netapp.com/docs/DOC-9247" target="_blank"&gt;https://communities.netapp.com/docs/DOC-9247&lt;/A&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Notes&lt;/P&gt;&lt;P class="p1"&gt;SC Version 3.6.0 from the NOW site&lt;/P&gt;&lt;P class="p1"&gt;Windows Version 2008 R2 Enterprise SP1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:12:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31147#M624</guid>
      <dc:creator>mshearer</dc:creator>
      <dc:date>2025-06-05T06:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from Snap Creator Windows Server - how?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31152#M625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;Please try to include -Credential&amp;lt;PSCredential&amp;gt; to your powershell script and supply username along with other options. &lt;/P&gt;&lt;P&gt;(like "User01" or "Domain01\User01")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect, snapcreator as such is unable to send emails, and having a domain account like domain\username might break thru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Siva Ramanathan&lt;/P&gt;&lt;P&gt;Snapcreator Community Moderator&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 18:24:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31152#M625</guid>
      <dc:creator>sivar</dc:creator>
      <dc:date>2013-01-10T18:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from Snap Creator Windows Server - how?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31156#M626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I am closer now than I was before, the SUCCESS_TRAP works, the SENDTRAP does not, basically the message needs to be single quoted to be interpreted properly by powershell, so I manually single quoted the SUCCESS_MSG, now trying to figure out how to do that for the MSG variable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes:&lt;/P&gt;&lt;P&gt;-Need to have the Snap Creator service started by a domain user rather than local user&lt;/P&gt;&lt;P&gt;-Need to have powershell.exe in your path&lt;/P&gt;&lt;P&gt;-Had to place single tick quotes around the message in the SUCCESS_MSG variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;###########################&lt;/P&gt;&lt;P&gt;### Event Configuration ###&lt;/P&gt;&lt;P&gt;###########################&lt;/P&gt;&lt;P&gt;NTAP_ASUP_ERROR_ENABLE=N&lt;/P&gt;&lt;P&gt;SENDTRAP=powershell.exe -noprofile -command "&amp;amp; {Send-MailMessage -to mattshearer@lab.stl -from snapcreator@dfm.lab.stl -subject &lt;SPAN style="text-decoration: underline;"&gt;%MSG&lt;/SPAN&gt; -SmtpServer smtp.lab.stl}" &amp;lt; nul&lt;/P&gt;&lt;P&gt;SUCCESS_TRAP=powershell.exe -noprofile -command "&amp;amp; {Send-MailMessage -to mattshearer@lab.stl -from snapcreator@dfm.lab.stl -subject %SUCCESS_MSG -SmtpServer smtp.lab.stl}" &amp;lt; nul&lt;/P&gt;&lt;P&gt;SUCCESS_MSG='INFO: NetApp Snap Creator Framework Backup for %SNAME ACTION: %ACTION POLICY: %SNAP_TYPE finished successfull'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 20:39:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31156#M626</guid>
      <dc:creator>mshearer</dc:creator>
      <dc:date>2013-01-10T20:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from Snap Creator Windows Server - how?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31160#M627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome!. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SENDTRAP=powershell.exe -noprofile -command "&amp;amp; {Send-MailMessage -to mattshearer@lab.stl -from snapcreator@dfm.lab.stl -subject '&lt;SPAN style="text-decoration: underline;"&gt;%MSG'&lt;/SPAN&gt; -SmtpServer smtp.lab.stl}" &amp;lt; nul&lt;/P&gt;&lt;P&gt;Will including the single quotes around %MSG work as you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 20:48:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31160#M627</guid>
      <dc:creator>sivar</dc:creator>
      <dc:date>2013-01-10T20:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from Snap Creator Windows Server - how?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31167#M628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this is now working and here is the configuration I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #454545; background-color: #ffffff;"&gt;How I got this to work:&lt;/P&gt;&lt;P style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #454545; background-color: #ffffff;"&gt;-Need to have the Snap Creator service started by a domain user rather than local user&lt;/P&gt;&lt;P style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #454545; background-color: #ffffff;"&gt;-Need to have powershell.exe in your path&lt;/P&gt;&lt;P style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #454545; background-color: #ffffff;"&gt;-Need to have the &amp;lt; nul at the end of the line of the powershell input&lt;/P&gt;&lt;P style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #454545; background-color: #ffffff;"&gt;-Have a single tick with a space before and a space after the %MSG and %SUCCESS_MSG variables in the SENDTRAP and SUCCESS_TRAP variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;###########################&lt;/P&gt;&lt;P&gt;### Event Configuration ###&lt;/P&gt;&lt;P&gt;###########################&lt;/P&gt;&lt;P&gt;NTAP_ASUP_ERROR_ENABLE=N&lt;/P&gt;&lt;P&gt;SENDTRAP=powershell.exe -noprofile -command "&amp;amp; {Send-MailMessage -to mattshearer@lab.stl -from snapcreator@dfm.lab.stl -subject ' %MSG ' -SmtpServer smtp.lab.stl}" &amp;lt; nul&lt;/P&gt;&lt;P&gt;SUCCESS_TRAP=powershell.exe -noprofile -command "&amp;amp; {Send-MailMessage -to mattshearer@lab.stl -from snapcreator@dfm.lab.stl -subject ' %SUCCESS_MSG ' -SmtpServer smtp.lab.stl}" &amp;lt; nul&lt;/P&gt;&lt;P&gt;SUCCESS_MSG=INFO: NetApp Snap Creator Framework Backup for %SNAME ACTION: %ACTION POLICY: %SNAP_TYPE finished successfull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 20:57:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31167#M628</guid>
      <dc:creator>mshearer</dc:creator>
      <dc:date>2013-01-10T20:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from Snap Creator Windows Server - how?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31175#M629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks much for your efforts in making this work.&lt;/P&gt;&lt;P&gt;I shall discuss this with developers and see if this can be streamlined.&amp;nbsp; (given that we support various Operating Systems)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 21:01:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31175#M629</guid>
      <dc:creator>sivar</dc:creator>
      <dc:date>2013-01-10T21:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from Snap Creator Windows Server - how?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31180#M630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the recommendation, yep by placing a single quote on each side with a space I realized it worked and I did not have to make any other special changes, single quote on both sides otherwise made it interpret as a sting i.e. as '%MSG' instead of SNAPCREATOR MESSAGE...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 21:07:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31180#M630</guid>
      <dc:creator>mshearer</dc:creator>
      <dc:date>2013-01-10T21:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from Snap Creator Windows Server - how?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31184#M631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you made this work with the new version of SanpCreator 4.0p1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 23:18:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31184#M631</guid>
      <dc:creator>debpearenetapp</dc:creator>
      <dc:date>2013-09-12T23:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from Snap Creator Windows Server - how?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31188#M632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not tested this out, but will give it a shot and let you know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 00:46:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/31188#M632</guid>
      <dc:creator>mshearer</dc:creator>
      <dc:date>2013-09-13T00:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from Snap Creator Windows Server - how?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/90467#M633</link>
      <description>&lt;P&gt;Hi, thanks for figuring this out. In your script, I dont understand what has to be replaced with "&lt;SPAN&gt;snapcreator@dfm.lab.stl". Include my network email id like snapcreator@xxxx.net ? Please advise.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 19:02:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Sending-email-from-Snap-Creator-Windows-Server-how/m-p/90467#M633</guid>
      <dc:creator>Sudheer</dc:creator>
      <dc:date>2014-10-01T19:02:13Z</dc:date>
    </item>
  </channel>
</rss>

