Can I customize the email 'container' html too?

Hi,

I’d like to update the layout of the emails to match the other emails that we send. What I’d need is a way to add a ‘wrapper’ around the email content, adding a logo, text-box and some elements like that. I couldn’t find this option in the Customize section of the admin - how would I do this?

Thanks!

Hi folks,

when re-reading this I realised that I could have been more clear with my request for help. Let me try again :slight_smile:

I’m aware that you can customise the text content of the emails, but I’d like to have a little more control over their layout. I’ve gone through all the admin options, thinking that maybe there’s an ‘email HTML template’ setting somewhere, but I haven’t been able to find it. Does such a thing exist and did I simply overlook it? Or would this require some custom coding/plugin?

Many thanks!

any followup on this? i would like to do the same thing…

Today our email only allows the customizations trough outlets, and not the concept of containers.

Maybe if you open the div with the customizations in a header outlet, and close in a footer outlet it can work, and be generic enough to help many users.

What do you think?

what are outlets? where can i modify them?

gotcha - i am looking for a way to customize ALL emails with our branding…

There’s a string with id user_notifications.header_instructions that can be used to add some html to the top of all HTML emails. It can be customized from Admin > Customize > Text Content. Here’s a simple example that would display a centered image (like a logo) with a red line above the email’s content:

<p style="text-align: center; border-bottom: 2px solid #B90B26; padding-bottom: 15px; text-align:center;">
<img src="...absolute-url-to-an-image..." width="90" height="66">
</p>

:thinking: to test how this works, I added the same lines as above with the absolute url to our logo, to this text content:

but nothing happened for our invitation emails,

  • is any additional work needed?
  • does this still work?

p.s.:

  1. the logo was already in digest emails (only digest), without any input in this text area.
  2. it works for the digest, if I put the html lines in this string: user_notifications.digest.custom.html.header
  3. the above text doesn’t work for the invitation emails. but it works for simple notifs.

update:

can I customize font of the email, using this way?

although fonts in the preview digest has been changed using the uploaded font, in the email, it hasn’t been changed.

also for notifications (and not digest) the codes are shown in the email!

I’ve used this code lines in the header:

<style type="text/css" media="screen, print">

    @font-face {
      font-family: "sans";
      src: url("absolute url to font address on our server");


    }
    
  body, body input,  body select, body textarea,  body button, p, a, strong, center, h6{
    font-family: "sans";}
    
  </style>

<p style="text-align: center; border-bottom: 2px solid #0071BC; padding-bottom: 15px; text-align:center;">
<img src="absolute url to the logo">
</p>

sorry to bring this up, but my question again:

can one change the font of an email, by adding an html code in the text content?

It seems to work for the digest when I check the digest preview, but in the email inbox, the font is still not uploaded to the digest.

@awesomerobot élabore un plan pour améliorer un peu la personnalisation des thèmes de messagerie dans la version 2.4.

@codinghorror @awesomerobot, prévoyez-vous toujours d’inclure la personnalisation des thèmes des e-mails dans la version 2.4 ? Je ne le vois pas dans le sujet de la version 2.4.

Nous sommes en train de migrer notre forum de bbpress vers Discourse. J’avais supposé que les e-mails pouvaient être personnalisés et j’ai appris récemment que ce n’est pas le cas. J’espère vraiment voir cela dans la version 2.4…

Oui, @neil vient tout juste de mettre en place une méthode pour personnaliser le HTML/CSS utilisé dans nos e-mails. Si vous êtes sur la branche tests-passed et que vous avez mis à jour au cours de la dernière semaine environ, cette option est disponible en accédant à admin > personnaliser > style d'e-mail.

Excellent ! Merci. Nous attendrons probablement la version 2.4 pour l’essayer, car nous sommes déjà très occupés à tout migrer vers la 2.3.