从电子邮件中的链接中提取收件人电子邮件地址?

发布于 2025-01-28 14:35:53 字数 199 浏览 2 评论 0原文

我有一个C#MailKit程序,该程序会自动将电子邮件发送到电子邮件列表。我有一个带有电子邮件地址的数据库的Web服务器,我想在电子邮件中合并一个退订链接。是否有任何方法可以跟踪单击链接的人的电子邮件地址?从本质上讲,我只是想从未订阅的人的数据库中删除电子邮件。

在单击链接后,是否有任何类型的特殊链接/我可以采取任何措施来提取用户的电子邮件地址?

谢谢。

I have a C# Mailkit program that automatically sends emails to an email list. I have a web server with a database filled with email addresses and I want to incorporate an unsubscribe link within my emails. Is there any way of tracking the email address of the person who clicked the link? I essentially just want to remove the email from the database of the person who unsubscribed.

Are there any kind of special links/anything I can do to pull the user's email address after they click the link?

thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心意如水 2025-02-04 14:35:54

“当使用MailKit在身体内部创建电子邮件时,请创建退出链接,该链接链接链接,该链接包含Query参数中的电子邮件 其从Datsbase中删除。

并将 或发送电子邮件中并将其包含在订阅链接中; >您的取消订阅页面查找电子邮件或用户。

"When creating email message with mailkit inside the body create unsubscribe link which contains email in query parameter.Like in my example above. That link needs to point to your web server on specific endpoint which can read email address from that query string and remove it from datsbase. – SlobodanT"

"Don't use encryption for this. Don't pass user information like emails in links. When you send a user an email, store a GUID for that user or email and include it in the unsubscribe link; something like http://example.com/unsubscribe/GUID HERE. Your unsubscribe page looks up the email or user and unsubscribes them. – Dour High Arch "

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文