Select Page

Send a Simple Email 

Send-MailMessage -To “User01 <[email protected]>” -From “User02 <[email protected]>” -Subject “Test mail”

Send an email with attachment

Send-MailMessage -From “User01 <[email protected]>” -To “User02 <[email protected]>”, “User03 <[email protected]>” -Subject “Sending the Attachment” -Body “Forgot to send the attachment. Sending now.” -Attachments “data.csv” -Priority High -dno onSuccess, onFailure -SmtpServer “smtp.fabrikam.com”

Send an email to a mailing list

Send-MailMessage -To “User01 <[email protected]>” -From “ITGroup <[email protected]>” -Cc “User02 <[email protected]>” -bcc “ITMgr <[email protected]>” -Subject “Don’t forget today’s meeting!” -Credential domain01\admin01 -UseSsl