我正在论坛上其他帖子的帮助下创建电子邮件草稿。我有该代码
$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()
脚本正在以我想要的格式创建电子邮件草稿,其中包含我想要的所有详细信息,但是当我尝试插入在Outlook中创建的签名时,出现错误。 谢谢
答案 0 :(得分:0)