从 Delphi 撰写 Outlook 2010 邮件的最简单方法? [英] Easiest way to compose Outlook 2010 mail from Delphi?

查看:43
本文介绍了从 Delphi 撰写 Outlook 2010 邮件的最简单方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的一些应用程序使用 mailto:模拟发送到...",以及 Windows 2000 和 2003 环境中的 SMTP,现在转移到新的 Windows带有 Exchange 2010 和 Outlook 2010 客户端的 2008 系统.

Some of our applications which work fine with different ways of email integration, using mailto:, simulated "Send To...", and SMTP in Windows 2000 and 2003 environments, now move to a new Windows 2008 system with Exchange 2010 and Outlook 2010 clients.

我们有一个用例,应用程序创建一封新邮件,设置收件人和主题,添加一个或多个附件,然后在默认邮件客户端中打开它,以便用户可以在发送前对其进行编辑.

We have one use case where the application creates a new mail, sets recipient(s) and subject, adds one or more attachments and then opens it in the default mail client so it can be edited by the user before sending.

您知道在新环境中有效的解决方案吗?我们应该使用第三方库吗?或者是否有一些可用的 OLE 自动化代码可以使用 Outlook.Application?

Do you know a solution which works in the new environment? Should we use a third party library? Or is there some OLE automation code available which is known to work, using Outlook.Application?

推荐答案

我们使用 Jedi 中 jclMapi 单元的 JclSimpleBringUpSendMailDialog JCL 库.

We use JclSimpleBringUpSendMailDialog from the jclMapi unit in the Jedi JCL library.

我曾经有一个应用程序,我们在其中内置了一个用户选项来指定他们是要使用 SMTP 还是 MAPI,然后是各种邮件服务器设置,但 Jedi 库调用让生活变得更加轻松.如果最终用户遇到了在 MAPI 客户端中设置所有设置的麻烦,那么他们为什么要在我/我们的软件中再次设置它们.

I once had an app where we built in a user option to specify whether they wanted to use SMTP or MAPI and then all sorts of mail server settings but the Jedi library call makes life so much easier. If end users have gone to the trouble of setting up all their settings in a MAPI client then why would they want to set them all up again in my/our software.

mailto://的问题在于,它通常不够可配置,或者邮件客户端没有以相同/标准的方式处理参数 - 然后用户认为您的软件是垃圾而不是相信他们有狡猾邮件客户端.

The trouble with the mailto:// stuff is that it's often not quite configurable enough or the mail client doesn't handle the parameters in the same/standard way - then users think your software's rubbish rather than believe they have a dodgy mail client.

所以我们只使用 MAPI 接口.很简单.

So we just use the MAPI interface. Easy.

这篇关于从 Delphi 撰写 Outlook 2010 邮件的最简单方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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