对于outlook email api的多个附件文件 [英] For multiple attachement files for outlook email api

查看:117
本文介绍了对于outlook email api的多个附件文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一下使用Outlook的api发送电子邮件,

我想要附上很多文件。

我只能通过编写下面的代码只使用一个文件,

我应该如何写多个附件文件?



I would like to write for sending Email using Outlook''s api,
and I want to attach many file.
I only could use for only one file by writing the below code,
How should I write for multiple attachement file?

objMail.Attachments.Add((object)fileAttachTextBox.Text,
                   Outlook.OlAttachmentType.olEmbeddeditem, 1, (object)"Attachment");







谢谢,

ttds




thanks,
ttds

推荐答案

你好ttds,

我知道这听起来可能很傻,但我认识到你的' 'objMail''有会员''Attachements'',附件后额外强调''s''。作为outlook-api的一个天真的新手,我想知道为了添加另一个附件是否仅仅为了再次写同样的声明是不可能的?



如果这没有多大帮助,我建议你看看 MAPIEx:这是Noel Dillabough的扩展Mapi的包装。它是为C ++和.Net实现的,你可以使用它。一般来说,它非常精心制作并且可以直接使用。
Hi ttds,
I know this might sound silly now, but I recognised that your ''objMail'' has the member ''Attachements'', where extra emphasis is placed on the ''s'' after attachment. As a naive newbie to the outlook-api I would wonder if it''s not possible simply to write this same statement again in order to add another attachment?

If this is not of much help, I would then suggest you to have a look at MAPIEx: which is a wrapper for the Extended Mapi by Noel Dillabough. It is implemented for both C++ and .Net, which would you enable to use it. Generally it''s very well crafted and straight-forward to use.


这篇关于对于outlook email api的多个附件文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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