Join us

heart Posts from the community tagged with jakarta...
Sponsored Link
@faun shared a link, 1 year, 1 month ago

The art and science of developing intelligent apps with OpenAI GPT-3, DALL·E 2, CLIP, and Whisper.

Explore the fascinating world of Artificial Intelligence and solve real-world problems!

In this practical guide, you will build intelligent real-world applications using GPT-3, DALL-E, Whisper, CLIP, and more tools from the OpenAI and ML ecosystem.

Rest assured, you don't need to be a data scientist or machine learning engineer to follow this guide!

The art and science of developing intelligent apps with OpenAI GPT-3, DALL·E 2, CLIP, and Whisper.
Story Trending Mailtrap Team
@sofiatarhonska shared a post, 1 year, 7 months ago
Mailtrap

Sending HTML email with images in Java

To learn about Jakarta Mail basics, sending messages via an SMTP server and more options to consider head to the original tutorial about how to send email with attachement in Java on Mailtrap Blog.

To send an HTML email, you should perform the same steps as for sending a simple text message, with only SendHTMLEmail class instead of just SendEmail. Also, you need to set content to the MimeMessage.setContent(Object, String) and indicate text/html type.

To add an image to your HTML email in Jakarta Mail, you can choose any of three regular methods: CID, base64 image, or linked image.

To embed a CID image, you need to create a MIME multipart/related message: