ben*_*ben 1 unsubscribe amazon-web-services amazon-ses
我正在尝试使用 PHP 中的 sendEmail 函数在 Amazon AWS SES API 中设置“List-Unsubscribe”标头。我在这里查看了亚马逊的文档和许多其他帖子,但还没有找到任何有用的东西。这是我目前使用的:
$client->sendEmail(array(
// all the main stuff like 'source', 'message', 'body', etc
'List-Unsubscribe' => '<http://unsubscribe.link>',
));
Run Code Online (Sandbox Code Playgroud)
... 其中http://unsubscribe.link是我的取消订阅 URL。
有什么建议?
您需要使用sendRawEmail而不是sendEmail为了构造原始消息并向其添加List-Unsubscribe标头。
提示:最好使用 mailto-links 而不是 http-links,List-Unsubscribe: <mailto:unsubscribe@example.com>因为并非所有邮件客户端都支持 http 取消订阅链接。
| 归档时间: |
|
| 查看次数: |
2790 次 |
| 最近记录: |