The discussion revolves around customizing the default font type on all emails sent by the system. Deyner_López is trying to use Google fonts in invite emails, but the fonts are not loading and only the fallback font is displayed. simon suggests that not all email clients support web fonts, including Gmail, and provides a workaround for adding custom styles to email templates.
Pad_Pors asks if it’s possible to change the font of emails for Gmail, specifically for adding Persian fonts. simon agrees to investigate further and asks for any known solutions. codinghorror suggests searching for an answer on Google, but Pad_Pors has already tried this and notes that some emails in his Gmail inbox from other websites do use Persian fonts, implying that it may be possible.
I am trying to modify the invites email a new user will receive whe we send him and invitation. I am trying to meet the design needs of our company(fonts, colors,…) The fonts we need are in Google fonts site and i try to modify the HTML Template in which all html emails are rendered trying to add two font types i need to use…
<style type="text/css">
body, p {font-family: 'Source Sans Pro', sans-serif;}
</style>
<!--[endif]-->
%{email_content}
…but when i receive test invite emails to a temporary address i’ve setup to test if this is working or not…the only font wich is loaded is the fallback font wich is “sans-serif”. The font i need is not downloaded or parsed.
So how can i customize invite email using fonts from Google fonts…??
And second part of my request is how can i add for example an outlined div or paragraph to only one email template(invite email template) because BBCodes doesn’t allow to customize a lot.
Your markup looks correct. What email client are you testing this on? Not all email clients support the use of web fonts. I don’t think Gmail supports web fonts.
Try adding a div with the class you are wanting to style directly to the invite template and then adding styles to the class to the Email Style / CSS editor. Discourse will substitute the styles you add there directly into the div that you target with a class. For example, with the Invite Mailer template customized to:
<div class="invite">
%{inviter_name} invited you to a discussion
> **%{topic_title}**
>
> %{topic_excerpt}
at
> %{site_title} -- %{site_description}
If you're interested, click the link below:
%{invite_link}
</div>
Thanks i will try and will let you know…I am using GMX services to test invite emails… maybe is what you are saying…i will test with other email client.
I am going to be doing some email testing this week. I’ll see if I can figure out how to get this to work. If anyone knows how to add custom fonts so that they work on Gmail, please let me know.