Advertisement
Guest User

Untitled

a guest
May 19th, 2019
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $From = "sapirhakir@mail.ru"
  2. $To = "igorpia14krisha@gmail.com"
  3. $Subject = "Here's the Email Subject"
  4. $Attachment = "D:\flag.txt"
  5. $Body = "This is what I want to say"
  6. $SMTPServer = "smtp.mail.ru"
  7. $SMTPPort = "587"
  8. Send-MailMessage -From $From -to $To -Subject $Subject -Body $Body -SmtpServer $SMTPServer -port $SMTPPort -UseSsl -Credential (Get-Credential) -Attachments $Attachment –DeliveryNotificationOption OnSuccess
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement