Price Drop Notifications Image Generators for Web Developers Vista Review Create a Shortcut to Launch Multiple Programs Firefox 2 Tweak
Collapsed This Week Collapsed CyberNotes
Collapsed Last Week

How to Insert HTML Signatures in Gmail

February 12th, 2007
16 Comments Written by Ryan


Gmail Signature Gmail has always been my choice of online email clients, but one thing that is frustrating is that HTML signatures aren’t supported within the composition area. Well, Gmail can actually handle them there is just no easy way to have the signature automatically inserted with each message…until now.

Garett Rogers from Googling Google has stepped up to the plate and has figured out a way to automate the insertion of an HTML signature into the messages that you compose. The trick is nothing too extravagant but you will need to have Greasemonkey installed to get the job done. Here is what you have to do:

  1. Download and install Greasemonkey if you don’t already have it.
  2. Install the script
  3. You’ll need to have the HTML code for the signature that you want to insert. Once you have that just go to the Greasemonkey script manager and edit the script’s HTML signature. I have a screenshot of my code below.

So it is pretty easy to setup. To test it out I added the script to my Greasemonkey then went to the Greasemonkey script management window and edited the script from there. Here is a screenshot of the HTML text I used to generate the signature pictured above:

Greasemonkey HTML signature

The image in the signature is compliments of the Feedburner Headline Animator which I discuss in this post about making email signatures. It is an effective way to show off the latest posts from your blog or site, and the background is customizable so that you can make it unique to your site. Using that together with this Greasemonkey script is a great solution for anyone looking to attract new readers…especially if you send out a lot of emails. The great thing about this script is that a nice looking signature is no longer a pain to use in Gmail. Thanks Garett!

RSS Icon Enjoyed the post? Subscribe to our feed to get a daily dose of CyberNet!

Tags: Google, , ,

Previous ArticleNext Article
 

Related Posts:


16 Unread Comment Tracking CyberMark This Article
RSS Icon
16

  1. Avatar

    Well, followed the instructions to the letter, but getting no signature block in my version of Gmail. Might the URLs be different for us over here in the UK?

  2. Avatar

    That didn’t even cross my mind. I take it that your URL’s don’t look like:
    http://mail.google.com/
    and instead look like:
    http://mail.google.co.uk

    If that is true then you need to adjust the “@include” lines because that specifies which sites to apply the script to. Let me know if you have any problems with that.

  3. Avatar

    Cool trick thanks. :-D

  4. Avatar

    The URL for my ‘compose’ page looks like this:

    https://mail.google.com/mail/?auth=stupidly long string of characters]]=[[eleven characters]]&shva=1

    - or sometimes just:

    https://mail.google.com/mail/

    I wondered if the /mail/ bit might be the problem, but I tried splicing that in, still no joy. Probably because neither URL looks anything like the ones in the script manager! I’ve tried all the different ‘views’ of Gmail, too. Anyone else having problems, here, or just me?

  5. Avatar

    Actually Gmail uses frames so even though the URL may appear to be one thing the actual frame that the script is targeting is a little different. The script worked right away for me and as long as your Gmail is a .com address I wouldn’t think that you would have any other issues. I can’t think of anything else to help you. :(

  6. Avatar

    I installed Greasemonkey and the script, and it fits our needs perfectly, except for one detail.

    How can I insert signatures in Replies? This does not seem to work by default?

  7. Avatar

    It should still work for replies. I’m not sure why that’s not working for ya. Works for me. :(

  8. Avatar

    I don’t follow the instructions.

    I’ve installed Greasemonkey and the script. I’ve got a small monkey icon in the bottom right of my Firefox window. I used the right-mouse button to click on that icon and select ‘Manage User Scripts’. In the left-hand panel is a script called ‘HTML Signatures for GMail’. I’ve edited that script but what happens next. How does that script then get added to my GMail signature?

    In GMail there is a settings page where you can assign a signature but I don’t know what I’m meant to enter there.

    Thanks.

  9. Avatar

    It’s automatically inserted for your which is why this is so great. Just go to compose an email message in Gmail and it should automatically insert the signature before you even start typing!

    You should probably disable your Gmail signature though otherwise the signature inserted by Greasemonkey AND the Gmail signature will both be added. This Greasemonkey script has nothing to do with the signature option in the Gmail settings…they are independent of eachother.

    Let me know if that helps at all.

  10. Avatar

    Thanks for clarifying that. If the signature consists of just text then it works fine, but as soon as I introduce any HTML elements into the signature then it stops working. I’ll have to experiment further and see if I can get it to work.

  11. Avatar

    I’m sure you’re just making a small mistake somewhere. One thing that you want to watch for that is a common mistake when doing this kind of stuff is that the entire HTML string is surrounded by single quotes. If you have any other single quotes, also known as apostrophes, in the actually signature itself it will mess up how it works. You can still use single quotes in your signature, all you have to do is put a slash (\) before the single quote…or you can just use the double quotes as seen in my example above.

  12. Avatar

    You were right. I was using double quotes around the entire HTML string rather than single quotes. Works fine now :oops:

  13. Avatar

    I’m glad that was the problem…if only everything was such a simple fix. :)

  14. Avatar

    Greetings everyone

    I’m a noob on html

    how can i put a single picture in my signature

    for example don’t work

  15. Avatar

    Greetings everyone

    I’m a noob on html

    how can i put a single picture in my signature

    img src=”http://tech.cybernetnews.com/wp-includes/images/smilies/icon_exclaim.gif”for example don’t work

  16. Avatar

    I use an image in my example signature above.

:mrgreen: :| :twisted: :arrow: 8O :) :? 8) :evil: :D :idea: :oops: :P :roll: ;) :cry: :o :lol: :x :( :!: :?:

Note: All links posted in comments will automatically be hyperlinked.

↓ Expand Text Area  or  Decrease Text Area ↑

 Find out how to track new comments!


 

  1. There aren't any trackbacks or pings yet. You can be the first by using this trackback URL.