Posts

Showing posts from March 27, 2019

JavaMail - Send plain HTML content without formatting

Image
0 I want to send an email using JavaMail with HTML tags not formatted. I use this code : public void sendMail() throws MessagingException, IllegalStateException, IllegalArgumentException { Properties properties = System.getProperties(); properties.setProperty("mail.smtp.host", "localhost"); Session session = Session.getDefaultInstance(properties); MimeMessage message = new MimeMessage(session); MimeMultipart multipart = new MimeMultipart(); MimeBodyPart messageBodyPart = new MimeBodyPart(); messageBodyPart.setContent("<h1>This is an HTML message</h1>", "text/plain; charset=UTF-8"); multipart.addBodyPart(messageBodyPart); message.setContent(multipart); message.setFrom(new InternetAddress("noreply@l...

Digital Trends

Image
Digital Trends Logo of Digital Trends Screenshot Screenshot of Digital Trends from 2-14-2017 Type of site Technology news Available in English, Spanish Owner Designtechnica Created by Ian Bell, Dan Gaul Editor Jeremy Kaplan Website www.digitaltrends.com Alexa rank 1,023 (As of 19 March 2019 [update] ) [1] Commercial yes Registration no Launched June 2006 ; 12 years ago  ( 2006-06 ) Current status online OCLC number 810203593 Digital Trends is a technology news, lifestyle, and information website that publishes news, reviews, guides, how-to articles, descriptive videos and podcasts about technology and consumer electronics products. With offices in Portland, Oregon, and New York City, Digital Trends is operated by Designtechnica Corp., a media company that also publishes Digital Trends Español, a Spanish-language version of the site, and men's lifestyle site The Manual. The site offers reviews and informatio...