Jump to content

Add Script Log Info to Email Body

Recommended Posts

Created a script to run a .ps1 file on a server which works. Need to send email of script results created in the associated script log. Tried several ways but only get the word @%shellresults%@ in the email body. Don't have much SQL background. Any help is appreciated.

Script Config:


 Breakdown of steps 3,4,5




The info in the Script Log trying to get into body of email



Share this post

Link to post
Share on other sites

Sorry everyone, just found last step in email body had wrong variable. script and email now working.  

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...