gpt4 book ai didi

html - 发送带有嵌入式 Google 字体的 SMTP 电子邮件

转载 作者:太空宇宙 更新时间:2023-11-04 09:27:03 24 4
gpt4 key购买 nike

我正在尝试从 ASPX C# 页面发送电子邮件。我希望电子邮件字体来自 Google 字体。

在服务器端,我指定:

msg.IsBodyHtml = true;

这是我要发送的 HTML。

<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Rubik:400,700&amp;subset=hebrew,latin-ext" rel="stylesheet">
</head>
<body style="font-family:'Rubik';font-size:10pt;color:#4b5659;">
<center>
test text
</center>
</body>
</html>

仍然,电子邮件到达时没有指定的字体(使用默认字体)。

我们将不胜感激。

最佳答案

大多数电子邮件客户端无法处理复杂的 CSS。这包括嵌入式字体。这就是电子邮件模板应该相当简单的原因。

查看此 Support Guide了解更多详情。

关于html - 发送带有嵌入式 Google 字体的 SMTP 电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41014066/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com