DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Use NetBeans to hand-code HTML emails

Use NetBeans to hand-code HTML emails

Tim Boudreau user avatar by
Tim Boudreau
·
May. 08, 08 · Java Zone · Interview
Like (0)
Save
Tweet
4.10K Views

Join the DZone community and get the full member experience.

Join For Free

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.

HTML NetBeans

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How to Generate Fake Test Data
  • Evolving Domain-Specific Languages
  • How to Minimize Software Development Cost
  • A Smarter Redis

Comments

Java Partner Resources

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo