Over a million developers have joined DZone.

Use NetBeans to hand-code HTML emails

DZone's Guide to

Use NetBeans to hand-code HTML emails

· Java Zone
Free Resource

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

Every so often I need to write an email that contains hand-coded HTML - for example, if I want hyperlinked words or something like that.  In some cases there's probably some feature of my mail client that would do it, but I'd rather just hand code a few HTML tags and get it done with.

Of course, if you copy raw HTML and paste it into an email, you'll get an email with nicely escaped and formatted raw HTML.

So here's a Stupid NetBeans Trick:

  • Create an HTML file (I just keep a scratch HTML file in my home dir for this). 
  • Write your content in HTML
  • Copy and paste it from NetBeans into your mail program

The trick here is that NetBeans will put it on the clipboard with the text/html MIME type.  So instead of ending up with an email full of raw markup, it ends up rendered correctly in your message.

Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.


Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}