January 14, 2015 by Daniel P. Clark

Email Composer/Editor Template for WebDevs

I went searching online for a HTML template of an email composer and didn’t find any.  I’m very disappointed in the interwebs for not being so forth coming.  There are many sites and services that allow you to write email.  Heck even Rails has ActionMailer which can handle sending mails.  But why not have a free template to do so?  Where is the form for user input?

Well I’ve decided to share one I’ve written for you since I haven’t seen anyone else do so.  It’s very basic, but it’s just that which needs to be free and open source.  I’ll license this template as MIT license so use it as you will.  Don’t mind the in-lined JavaScript on the CC and BCC links.  You can separate that out if you’d like.  This template uses Bootstrap 3 and jQuery.

And the SASS style sheet used for this:

And the jQuery dialog button to open the email composer:

You will have to write your own position into this.  I’ve targeted mine to snap to the bottom of the site header navbar.  Now with this you should be able to open a email composer dialog window that looks like this:

email composer

The CC and BCC links will simply open a new entry field.  From here I suggest you write an AJAX lookup for the email inputs to auto-complete from the user’s contact list.  Then you’ll have plain text emails ready from the client side.

If you have any useful links for added features or plugins to email composing please provide a link in the comments below along with a short description!  Thanks!  As always, I hope you found the information here both useful and insightful!

Please comment, share, subscribe to my RSS Feed, and follow me on twitter @6ftdan!

God Bless!
-Daniel P. Clark

PS When you add auto-complete you will need to raise the z-index and style the results (example).  Also you will need to write your JavaScript hooks to initialize after the dialog has been opened since they don’t “yet” exist to hook into.

PPS If you’re using the stylesheets provided by jQuery-UI then you’ll need to add these as well to your SASS file:

Image by Dennis Skley via the Creative Commons Attribution-NoDerivs 2.0 Generic License.

#article#blog#bootstrap#compose#composer#creating#css#css3#edit#editor#email#emails#html#html5#jquery#post#template#webdev