As Outlook.MailItem = TryCast(Inspector.CurrentItem, Outlook.MailItem) If mailItem.EntryID Is Nothing Then
mailItem.Subject = "Test"mailItem.Body = mailItem.Body + "
在撰写新邮件(使用Outlook365)时,应在MailItem向用户打开之前操作HTML体。为了避免安全警告,我使用SafeMailItem读取HTMLBody属性: Application outlook = new Application();inspector = mailItem.GetInspector;
SafeMailItem safeMailItem = new SafeMail
我被赋予了一项疯狂的任务:为Outlook编写一个自定义规则,它会影响没有附件的电子邮件。目前,在规则向导中有一个选项,目标是确实有附件的电子邮件,但不是相反的,奇怪的.这就是我目前的情况: Set objInbox = Session.GetDefaultFolder(olFolderInbox).Items
Private Sub ob
As Outlook.MailItem = TryCast(Inspector.CurrentItem, Outlook.MailItem) If mailItem.EntryID Is Nothing Then
mailItem.Subject = "Test"mailItem.HTMLBody = mailItem.HTMLBody