Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $From = "sapirhakir@mail.ru"
- $To = "igorpia14krisha@gmail.com"
- $Subject = "Here's the Email Subject"
- $Attachment = "D:\flag.txt"
- $Body = "This is what I want to say"
- $SMTPServer = "smtp.mail.ru"
- $SMTPPort = "587"
- 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