在Amazon SES模板中使用样式标签设置html样式

问题描述 投票:2回答:1

我试图通过包含样式标记来设置我在Amazon SES上的电子邮件html模板的内容。但是当我收到电子邮件时它没有呈现。

请告诉我如何将样式应用于我的电子邮件,并使用Amazon ses在我的电子邮件中包含图像。提前致谢

amazon-ses
1个回答
0
投票

试试这个,将下面的部分设置为Html字段。

 <html><head><style> .cl{ color:blue;background-color:yellow}</style></head><body><button class='cl'>hello</button></body></html>

当您发送此信息时,您将获得带有蓝色文本的按钮和带黄色的背景,如下所示enter image description here

希望这可以帮助!!

注意:不要错过头标记

© www.soinside.com 2019 - 2024. All rights reserved.