gpt4 book ai didi

email - 通过 sendgrid 在电子邮件中添加 "web version link"

转载 作者:行者123 更新时间:2023-12-01 02:21:15 25 4
gpt4 key购买 nike

如何添加指向我的 sendgrid 电子邮件的网络版本的链接,例如“阅读此电子邮件时遇到问题,请单击此处”?

[编辑]
我使用 php sendgrid 库
包括“sendgrid-php-master/SendGrid_loader.php”;

我使用此代码但它不起作用:

$mail = new SendGrid\Mail();
....
$mail->setHtml('<a href="[weblink]">View this email in your browser</a><br />'.$sg_html_code);
...

最佳答案

为了确认 Lirianna 所说的话,这里有 Sendgrid 支持团队对同一问题的回答:

Using [Weblink] will only be supported when using our Marketing Campaigns tool. To use this in a transactional template, you would need to create and host that link yourself.

关于email - 通过 sendgrid 在电子邮件中添加 "web version link",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20378305/

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