简体   繁体   中英

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. The email is HTML formatted. I have searched around, but the only things I can find are on how to send the email 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.

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.

Any help would be appreciated.

Generate an EML (MIME) file and provide a link to that file instead of a mailto link. Outlook will open and display the EML file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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