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

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

问题描述

我们的一些应用程序使用不同的电子邮件集成方式工作正常,使用 mailto:模拟发送到...和SMTP在Windows 2000和2003环境中,现在转移到具有Exchange 2010和Outlook 2010客户端的新的Windows 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?

推荐答案

我们使用jclSimpleBringUpSendMailDialog从jclMapi绝地中的单位 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天全站免登陆