Use NetBeans to hand-code HTML emails

Subtitle: 
Stupid NetBeans Tricks

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.

Article Type: 
How-to
0

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)