Skip to main content
HI there,

I have a visualforce email template that I would like to use Google fonts for.  My code looks like this:

 

<messaging:emailTemplate subject="{!if(RelatedTo.Site__r.State_Province__c='QC','Re: '& relatedTo.Site__r.Name_FR__c & ' ID:'& relatedTo.Name,'Your ' & relatedTo.Site__r.Name & ' Inquiry ID:' & relatedTo.Name)}" recipientType="Lead" relatedToType="Lead_To_Site_Association__c">

<messaging:htmlEmailBody >

<html>

<head><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:300,400,600,700&amp;lang=en" /></head>

<body style="background-color:⌗ffffff;">

<style>

body{

font-family: 'Raleway';}

</style>

When I look at the template in the preview it appears fine.  When I send a test the email is received with Times New Roman and not the font I saw in the preview.

Any ideas?
3 answers
  1. May 1, 2016, 1:01 AM
    Hi Brian,

    Most email clients are very limited in which fonts can be rendered in HTML based emails. If you are viewing the email in Outlook then it will default the font to Times New Roman. When you are setting up the template the reason you are able to see the font they way you want is because it is being rendered in your browser as a webpage.
0/9000