sendgrid python api取消订阅和管理列表标记

2024-04-28 10:56:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用的是sendgrid python api(即使用set_html方法上载html,并尝试为以下内容自定义默认文本的样式:

"Unsubscribe From This List | Manage Email Preferences"

我试着用他们的“跟踪”设置来设置一个自定义的替换标签,但是我不能让它工作。在

我试过很多次迭代

^{pr2}$

但似乎什么都不管用。在

以下是我在web应用程序设置中的内容

the sendgrid webapp settings for subscription tracking

我需要在html模板中放入什么文本?我读了this,我照上面说的做了,但还是没用。在


Tags: 方法from文本apimanageemailhtml样式
1条回答
网友
1楼 · 发布于 2024-04-28 10:56:03

我在替换标签中使用了以下内容:

enter image description here

然后用作<a href='unsubscribe_tag_unique'>Unsubscribe</a>。在

Note: if it doesn't work, wait for 5-10 minutes to sink. I think there is some syncing lag in sendgrid servers.

相关问题 更多 >