将嵌入式图像插入Lotus Notes消息 [英] Insert inline image into Lotus Notes message

查看:59
本文介绍了将嵌入式图像插入Lotus Notes消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经可以使用Lotus API,VBA和Python使用COM API发送电子邮件,如下所示:

I've been able to send emails using Lotus Notes and VBA and Python using the COM API like this:

我可以使用Lotus Notes发送邮件吗?

我的问题是如何以编程方式(等效于编辑" |选择性粘贴")插入带有正文文本(而不是附件)的图像?我无法从一些Google搜索中找到任何可行的解决方案.任何使用普通VBA或Python的解决方案都将受到赞赏.

My question is how can I insert an image inline with the body text (not as an attachment) in a programmatic way (equivalent to the Edit | Paste Special)? I haven't been able to find any workable solutions from a few Google searches. Any solution using stock VBA or Python would be appreciated.

谢谢!

推荐答案

如果您不需要做特定于Notes的操作,即使用@functions等处理特定的表单,那么构造消息要好得多作为多部分mime消息.

If you don't need to do anything specific to Notes, i.e. work with a specific form with @functions etc, then you are much better off constructing the message as a multipart mime message.

您需要设置会话,以便在创建文档时它是mime,然后可以适当地设置您的消息,请参见NotesSession.ConvertMIME.然后,您将使用NotesMIMEEntityNotesMIMEHeader对象构造mime消息.

You need to set up the session so that when you create the document it is mime and you can then set up your message appropriately, see NotesSession.ConvertMIME. You will then use NotesMIMEEntity and NotesMIMEHeader objects to construct the mime message.

如果您不熟悉mime消息的构造方式,那么这将有些棘手,因此您可能需要查看一些原始的mime消息以了解它们的外观.从那里,您应该能够弄清楚如何对NotesMIMEEntityNotesMIMEHeader类使用api来构造消息.

If you are unfamiliar with how mime messages are constructed then this is going to be a little tricky, so you may want to have a look at some raw mime messages to see what they look like. From there you should be able to work out how to use the api for the NotesMIMEEntity and NotesMIMEHeader classes to construct the message.

这篇关于将嵌入式图像插入Lotus Notes消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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