Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #rem email me function. Pipe any command into this to #have the output emailed to you.
- function emailme{
- $body = @( $input )
- $body = $body | out-string
- $email = @{
- From = "(enterfromemailhere) "
- To = "(entertoemailhere)"
- Subject = "The Data You Requested"
- SMTPServer = "(smtpserveriphere) "
- Body = $body
- }
- send-mailmessage @email
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement