开发者

MAPiEx - Extended Mapi Wrapper C# Help - Attachments?

开发者 https://www.devze.com 2023-02-22 09:38 出处:网络
I\'m trying to expose the attachment functionality in my c# code from MapiEx.dll using DllImport: [DllImport(\"MAPIEx.dll\", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]

I'm trying to expose the attachment functionality in my c# code from MapiEx.dll using DllImport:

[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetSenderName(IntPtr pMessage, string strSenderName);

[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetSenderEmail(IntPtr pMessage, string strSenderEmail);

[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetBody(IntPtr pMessage, String strBody);

[DllImport("MAPIEx.dll", CharSet  = ExtMAPIProfileWrapper.DefaultCharSet)]
protected static extern void MessageSetRTF(IntPtr pMessage, String strRTF);

[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
protected stati开发者_开发问答c extern void MessageSetHTML(IntPtr pMessage, String strRTF);

But I can't find the correct corresponding item to expose something to set an attachment.

Would

[DllImport("MAPIEx.dll", CharSet = ExtMAPIProfileWrapper.DefaultCharSet)]
 protected static extern void MessageSetAttachment(IntPtr pMessage, String strFileName);

work?


I think it's MessageAddAttachment.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号