Web Fonts do not work when sending email with Phpmailer

Asked

Viewed 30 times

0

When I send an email using Phpmailer the fonts are not recognized by gmail, I was already aware of some problems with CSS and having user the inline css in the "style" tag, there is some way to solve this?

Ex:

<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
<body style="margin: 0;padding: 0;background: #111;font-family: &quot;Open Sans&quot;;">
  • I believe that most (almost all) block external things like webfonts, ie tags like <link> and <script> are not allowed. However your script has an error font-family: &quot;Open Sans&quot; sure would be font-family: "Open Sans"

  • In fact, this was automatically generated by a converter because it is inside quotes, so there is no way to use external sources?

  • Not because it would be a security breach to inject external things, but I will create a test to see if it is possible to convert into an attachment.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.