Situatie
This example sends an email message to a mailing list.
Solutie
Run the PowerShell command:
Send-MailMessage -From ‘User01 <user01@domain.com>’ -To ‘ITGroup <itdept@domain.com>’ -Cc ‘User02 <user02@domain.com>’ -Bcc ‘ITMgr <itmgr@domain.com>’ -Subject “Don’t forget today’s meeting!” -Credential domain01\admin01 -UseSsl
The Send-MailMessage
cmdlet uses the From parameter to specify the message’s sender. The To parameter specifies the message’s recipients. The Cc parameter sends a copy of the message to the specified recipient. The Bcc parameter sends a blind copy of the message. A blind copy is an email address that is hidden from the other recipients. The Subject parameter is the message because the optional Body parameter is not included.
The Credential parameter specifies a domain administrator’s credentials are used to send the message. The UseSsl parameter specifies that Secure Socket Layer (SSL) creates a secure connection.
Leave A Comment?