$headers = New-Object System.Collections.Specialized.StringDictionary
$headers.Add("to", "test1@abc.com")
$headers.Add("cc", "test2@abc.com")
$headers.Add("bcc", "test3@abc.com")
$headers.Add("from", "test@test.com")
$headers.Add("subject", "Test Email Subject")
$headers.Add("content-type", "text/html")
$bodyText = "Hello how are you?"
[Microsoft.SharePoint.Utilities.SPUtility]::SendEmail($web, $headers, $bodyText)
$headers.Add("to", "test1@abc.com")
$headers.Add("cc", "test2@abc.com")
$headers.Add("bcc", "test3@abc.com")
$headers.Add("from", "test@test.com")
$headers.Add("subject", "Test Email Subject")
$headers.Add("content-type", "text/html")
$bodyText = "Hello how are you?"
[Microsoft.SharePoint.Utilities.SPUtility]::SendEmail($web, $headers, $bodyText)
No comments:
Post a Comment