[英]outlook2010 VSTO addin forwardmail issue
Am new in outlook add-in . 是Outlook加载项中的新功能。 I just create a encrypt and decrypt add-in using c#. 我只是使用c#创建一个加密和解密加载项。 Now am facing a problem, when i decrypt the email, its open through mailitem_open function successfully . 现在面临一个问题,当我解密电子邮件时,可以通过mailitem_open函数成功打开它。 Then click the forward option and send email. 然后单击转发选项并发送电子邮件。 Then close the window the actual message shown in decrypt mode not in encrypt one. 然后关闭窗口,以解密模式显示的实际消息而不是以加密形式显示的消息。 Please help me 请帮我
When you click the Forward button or just call the Forward method a new item is created/returned. 当您单击“前进”按钮或仅调用“ 前进”方法时,将创建/返回一个新项目。 You need to encrypt it before sending/saving. 您需要先加密它,然后再发送/保存。 For example: 例如:
Sub RemoveAttachmentBeforeForwarding()
Dim myinspector As Outlook.Inspector
Dim myItem As Outlook.MailItem
Dim myattachments As Outlook.Attachments
Set myinspector = Application.ActiveInspector
If Not TypeName(myinspector) = "Nothing" Then
Set myItem = myinspector.CurrentItem.Forward
Set myattachments = myItem.Attachments
While myattachments.Count > 0
myattachments.Remove 1
Wend
myItem.Display
myItem.Recipients.Add "Eugene Astafiev"
myItem.Send
Else
MsgBox "There is no active inspector."
End If
End Sub
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.