Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Send-MailMessage `
- -To "test_recipient@gmail.com" `
- -CC "test_cc@gmail.com" `
- -Subject "Hello from Poweshell" `
- -Body "Hello Receiver" `
- -SmtpServer "smtp.gmail.com" `
- -From "test_sender@gmail.com" `
- -Port 587 `
- -UseSsl `
- -Credential (Import-Clixml .\credentials.xml) `
- -Attachments "mail.ps1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement