简体   繁体   English

使用Java生成的内容向Outlook发送电子邮件

[英]Send email to Outlook using content generated in Java

I have a Java program that needs to be able to send the subject,body and recipient of an email to Outlook. 我有一个Java程序,需要能够将电子邮件的主题,正文和收件人发送到Outlook。 The email is HTML formatted. 电子邮件是HTML格式的。 I have searched around, but the only things I can find are on how to send the email USING Java. 我一直在寻找,但我唯一能找到的就是如何发送电子邮件USING Java。 This is not what I need to do. 这不是我需要做的。 I need to generate the mail, then give it to Outlook to send from there. 我需要生成邮件,然后将其发送给Outlook从那里发送。

The problem is that I have no idea on how to go about this. 问题是我不知道如何解决这个问题。 I can't think of any way to send the information over to Outlook except the MAILTO: protocol, which cannot transport HTML data. 我想不出有任何方法将信息发送到Outlook,除了MAILTO:协议,它不能传输HTML数据。

Any help would be appreciated. 任何帮助,将不胜感激。

Generate an EML (MIME) file and provide a link to that file instead of a mailto link. 生成EML(MIME)文件并提供指向该文件的链接,而不是mailto链接。 Outlook will open and display the EML file. Outlook将打开并显示EML文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM