I am struggling to get Google fonts to display properly in my newsletter emails.
Here is the code snippet I have been using:
$html="
<html>
<style>
@import url(http://fonts.googleapis.com/css?family=Lato|Simonetta);
</style>
<body>
<p style='font-family:Simonetta'>Hello There</p>
</body>
</html>";
$message->setBody($html, "text/html");
$result = $mailer->send($message);
Unfortunately, the correct font does not seem to be displaying as expected. I'm feeling frustrated and would appreciate any help anyone can provide to solve this simple yet troublesome issue.
If you are familiar with Swift Mailer, could you please assist?