

P.s 🤫 I recently started a podcast called The Anxious Developer where I share my knowledge on how to reduce your stress, become more present and productive as a Developer. Hope this was useful to you guys in case you want to build your email-signature! See you tomorrow 😊
#MJML GMAIL CODE#
Make sure you import just the BODY tag and minify your code before pasting it into the file! Here is my new signature 😊 I use the apple mail and I used this tutorial. Every email client handles this differently. Make sure to minify your code when you are done - /tools/minifierĪfter you are done, you have to import your signature into your email client. I like to make everything I build accessible, so make sure to check your code to be accessible too! - 1, 2 If you are not sure if a CSS property will be supported or not, you can use these websites - 1, 2 This is a great tool that will help you do just that! - /resources/inline-css You can create classes and style those, but your end code should be transformed into inline-style css. SVG is not yet supported in most of the email clients! I used to host my images. If you want to use icons, for example, social-media brands, you have to use. MJML: Multiple Screenshots Take multiple screenshots of the rendered MJML document. MJML: Migrate Migrate a template from MJML 3 to MJML 4. MJML: Export HTML Export HTML file from MJML.

MJML: Copy HTML Copy the result HTML to clipboard. Copy/paste the HTML code directly to the database by navigating to the emails table, clicking on the edit button, then pasting the code into the customhtml field. Make sure to add this attributes to your table: The following command is available: MJML: Beautify or Format Document Beautify MJML code. Workaround: Create the emails using MJML in vscode, then compile the code with the mjml-cli: mjml -w. It's better to use HTML tags specified for that instead of doing it through CSS! - htmlreference.io

If you want to make your text italic, bold, add quotes, etc. you read those articles and you still want to create your email-signature, then it means you really want it, so let's get to work! 🔨 Here are some advices from me:.Here are some resources to get you started on the right foot! So, after a day of wasting my time with MJML, I decided to go my own way and build it from scratch.ĭISCLAIMER: Prepare for some old school sh*t and forget about Flex layout! Heck, you can't even use shadows or custom fonts! You are gonna build an email signature using tables and inline-styles! YAY! 🎉 In the end, these are the designs I got inspired from:įor this one, I really liked the overall look of it!Īt the start, I tried to use the MJML framework to build my signature, but it turned out to be more difficult as its purpose is to build responsive emails, not email signatures. But, unfortunately, it's not that easy to create a good-looking e-signature and at the same time make it accessible across all the email clients (or at least most of them.) I found many nice looking ones with shadows, gradients, etc. A few months ago, I decided to replace my old email signature with a new better looking one.įor reference, this is the old email-signature:įor some reason, I thought my e-signature didn't look that bad, let's just say I needed a good wake-up call! 🤦♂️
