Delphi:如何在不使用MAPI的情况下在Outlook中撰写电子邮件? [英] Delphi: how to compose an email in Outlook without using MAPI?

查看:73
本文介绍了Delphi:如何在不使用MAPI的情况下在Outlook中撰写电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此问题中,我只是问.我告诉我,我是通过使用MAPI将数据从应用程序发送到Outlook来准备Outlook消息的.

In this question I just asked I told that I prepare Outlook messages by sending data from my app to Outlook with MAPI.

但是以这种方式,我有一个主要的障碍:我无法为邮件正文发送格式化的文本.我的表单有一个rtf字段,我剥离了rtf数据,然后准备了Outlook邮件.

But in this way I have one major hurdle: I cannot send formatted text for the message body. My form has an rtf field, I strip away rtf data then prepare the outlook mail.

在不使用mapi的情况下如何进行相同的操作(创建准备发送的Outlook外发电子邮件),并保持格式不变,以某种方式"rtf到html" ...有人已经有此代码了吗?

How is it possible to do the same (creating an outlook outgoing email ready to be sent) without using mapi, and keeping the formatting, somehow "rtf to html"... Does anyone already have this code?

推荐答案

使用Delphi提供的Ole Automation Server组件包装.我最近在另一个问题上挖出的一个例子可以在这里找到:

Using the Ole Automation Server component wrappers provided by Delphi. An example I dug up for another question recently can be found here: Easiest way to compose Outlook 2010 mail from Delphi?

这篇关于Delphi:如何在不使用MAPI的情况下在Outlook中撰写电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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