不要向cc outlook addin vb.net发送附件 [英] don't send attachments to cc outlook addin vb.net

查看:55
本文介绍了不要向cc outlook addin vb.net发送附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的Outlook开发了加载项,用于存档电子邮件。

我想询问发件人当他发送带附件的电子邮件时,如果他想将附件发送到CC'或者没有。

怎么办这个动作?

请帮助。



这是继续执行的代码outlook项目:

 私有  Sub  Application_ItemSend ( ByVal 作为 Outlook.MailItem, ByRef 取消作为 布尔处理应用程序。 ItemSend 
GetMessageID_NEW( Nothing ,Item,Item, OUTGOING
如果 Item.Attachments.Count> 0 然后
如果 < span class =code-keyword>不 Item.CC 没什么 然后
如果 MessageBox.Show( 是否要将附件发送到CC? ,MessageBoxButtons.YesNo,MessageBoxIcon.Question)= DialogResult.Yes 然后
' 我应该在这里写什么?
结束 如果
结束 如果
结束 如果
结束 Sub

解决方案

没有关于它的邮件标准。如果你想向任何人询问任何事情,那就去做吧。但CC是一个单独的标题,只有地址。如果您的邮件有附件,它也会被发送到CC地址。请注意,实际上没有任何附加。 附件只不过是多部分信息中的部分。由于整个消息是在某处发送的,因此它是作为一个整体发送的。



请参阅:http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html [ ^ ]。



-SA

经过深度搜索后,没有办法只发送两封电子邮件。



全部谢谢。


您无法向选择性收件人发送附件。实现这一目标的唯一方法是将原始附件电子邮件发送给需要附件的人,然后创建第二封没有附件的电子邮件,并将其发送给没有获得附件的人。这样做的问题是,这两组人现在不再是同一个电子邮件链的一部分,对这些电子邮件的回复不会发给所有人。


I develop Add-ins for my outlook that archive emails.
and I want to ask the sender when he send email with attachments if he want to send the attachments to the CC''s Or not.
how to proceed this action?
Please Help.

Here is the code that proceed the outlook item:

Private Sub Application_ItemSend(ByVal Item As Outlook.MailItem, ByRef Cancel As Boolean) Handles Application.ItemSend
    GetMessageID_NEW(Nothing, Item, Item, "OUTGOING")
    If Item.Attachments.Count > 0 Then
        If Not Item.CC Is Nothing Then
            If MessageBox.Show("Do you want to send the attachments to CC(s)?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes Then
                ' What should I write here?
             End If
        End If
     End If
End Sub

解决方案

There is nothing is mail standards about it. If you want to ask anyone about anything, just do it. But CC is a separate header with just address(es). If your mail message has "attachments", it will be sent to CC addresses as well. Note, that nothing is actually "attached". "Attachment" is nothing but a "part" in a multi-part message. As the whole message is sent somewhere, it is sent as a whole.

Please see: http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html[^].

—SA


After deep search there is no solution only to send two emails.

Thanks all.


You cannot send attachments to selective recipients. The only way to accomplish that is to send the original attachment email to the people who need the attachment, then create a second email that doesn''t have the attachment and send that to the people that don''t get the attachment. The problem with this is that the two groups of people are now no longer part of the same email chain and replies to those emails will not go to everyone.


这篇关于不要向cc outlook addin vb.net发送附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆