MozillaZine

Can I add a default stylesheet to every outgoing message?

User Help for Mozilla Thunderbird
AndrewK

User avatar
 
Posts: 20
Joined: April 21st, 2004, 5:04 pm
Location: Roanoke, VA

Post Posted October 16th, 2017, 11:05 am

Is there a way to set the outgoing stylesheet for HTML messages? Maybe include a default <style> section at the top of every message?

Right now I use the ThunderHTMLedit extension to paste a short style section at the top, but I have to do that manually with each message. I'm looking, I guess, to change the default <head> section of every e-mail that goes out.

In short, I'd like to be able to paste a simple HTML message without inline styles, and have Thunderbird add that stylesheet to the top. This way most recipients will get the message exactly the way I wanted it.

Right now the default HTML container looks like this:

Code: Select all
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
  </body>
</html>


I would like to change it to something like this:

Code: Select all
<html>
  <head>
   <style>
     body { font-family: 'Open Sans', Arial, sans-serif; }
     p { font-size: 1em; margin: 0 0 .5em 0; }
     a { color: #2971BC; text-decoration: underline; }
     h2, h3, h4 { color: #113e71; letter-spacing:-1px; font-weight: bold;}
     h1 { font-size: 1.25em; color: white; background-color: #113e71; padding: 4px; margin: 1em 0 1.5em 0; }
     h2 { font-size: 2em; margin: 0 0 1em 0; border-top:1px solid #113e71;}
     h3 { font-size: 1.5em; margin: 1.25em 0 .5em 0;}
  </style>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
  </body>
</html>



Is there any way to do that? Thanks for any suggestions!

tanstaafl
Moderator

User avatar
 
Posts: 44643
Joined: July 30th, 2003, 5:06 pm

Post Posted October 16th, 2017, 11:52 am

Have you tried creating a template that used your style sheet? See http://kb.mozillazine.org/Message_templates

AndrewK

User avatar
 
Posts: 20
Joined: April 21st, 2004, 5:04 pm
Location: Roanoke, VA

Post Posted October 16th, 2017, 12:16 pm

Why no ... no I haven't. Thank you!

Return to Thunderbird Support


Who is online

Users browsing this forum: No registered users and 10 guests