开发者

How to send programmatically an email from another mail client than outlook or outlook express?

From within your application you can send an email by using MAPI functions ("MAPISendMail"). But if there is another mail client installed like "Thunderbird" or "David InfoCenter" the use of MAPI functions does not work, because "Outlook" or "Outlook Express"开发者_JAVA百科 is not the standard email client.

The use of shell functions to execute "mailto:" is not satisfying because not all email clients do support command line parameters for mail attachment or mail body.

What can I do instead to get my desired result?


Which platform?

If .NET take a look at this the SmtpClient class.

http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx


If Java,

JavaMail

The JavaMail API provides a platform-independent and protocol-independent framework to build mail and messaging applications. The JavaMail API is available as an optional package for use with Java SE platform and is also included in the Java EE platform.

or

JAMES

James is a 100% pure Java SMTP and POP3 Mail server, and NNTP News server designed to be a complete and portable enterprise mail/messaging engine solution based on currently available open messaging protocols.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜