I am creating a draft email with the help of other post from the forum. I Have that code
$out= New-Object -comObject Outlook.Application
$sign= Get-Content "C:\Users\Roaming\Microsoft\Signatures\sign.htm"
$recipient= "user@.com
$new= $out.CreateItem(0)
$new.Subject = "Meeting details"
$new.Body = "Meeting details
Date
Time:
Participants:
Purpose:
Current status:
Act
Next steps:
1)
2)
3)
4)
5)
Thanks,
"
[Void]$new.Recipients.Add($recipient)
$new.save()
$new.HTMLBody = $sign
$display= $new.GetInspector
$display.Display()
The script is creating a draft email with all details I want at the format I want but when I am trying to insert also a signature I have created at Outlook I am getting an error. Thanks