简体   繁体   English

SendGrid 是否支持双重选择加入功能?

[英]Does SendGrid support double opt-in as a feature?

Does SendGrid support double opt-in to Lists as a feature or is that something we will have to implement for ourselves? SendGrid 是否支持将双重选择加入列表作为一项功能,或者这是我们必须自己实现的功能吗?

https://sendgrid.api-docs.io/v3.0/contacts-api-recipients/add-recipients https://sendgrid.api-docs.io/v3.0/contacts-api-recipients/add-recipients

It doesn't appear to me to be anywhere in the docs, but I thought I'd ask in case I missed it.在我看来它不在文档中的任何地方,但我想我会问以防万一我错过了它。

Not as of the current date;不是截至当前日期; I asked their support staff and received the following answer:我询问了他们的支持人员并收到了以下答复:

Double opt-in needs to be implemented by you in the form/page you're subscribing your recipients.您需要在订阅收件人的表单/页面中实施双重确认。 The confirmation email can be sent through SendGrid.确认电子邮件可以通过 SendGrid 发送。

For Marketing Campaigns we have the SendGrid's WordPress Subscription Widget that makes it easy for people visiting your WordPress site to subscribe to your marketing emails;对于营销活动,我们有 SendGrid 的 WordPress 订阅小部件,可以让访问您的 WordPress 网站的人轻松订阅您的营销电子邮件; or Building a SendGrid Subscription Widget.或构建 SendGrid 订阅小部件。

I got this answer from their support.我从他们的支持中得到了这个答案。 It turns out we have to implement it by ourselves.原来还得自己去实现。

The double opt-in functionality is not something SendGrid provides as we expect our customers to handle any opt-in practices on their side.双重选择加入功能不是 SendGrid 提供的,因为我们希望我们的客户在他们这边处理任何选择加入的做法。

We apologize for any inconvenience.很抱歉给您带来不便。

SendGrid will be GDPR compliant by May, 25, 2018. Please note that SendGrid does not – and does not currently have plans to – use servers or data centers in the European Union to process email. SendGrid 将在 2018 年 5 月 25 日之前符合 GDPR。请注意,SendGrid 不会——目前也没有计划——使用欧盟的服务器或数据中心来处理电子邮件。 Thus, SendGrid cannot restrict data to the EU.因此,SendGrid 不能将数据限制到欧盟。 However, neither current EU law nor the GDPR require this.但是,当前的欧盟法律和 GDPR 都没有要求这样做。 Instead, what is required is that SendGrid must provide "appropriate safeguards" for data that it hosts and processes on its US servers (see Art 46 of the GDPR here).相反,所需要的是 SendGrid 必须为其在其美国服务器上托管和处理的数据提供“适当的保护措施”(参见此处的 GDPR 第 46 条)。 SendGrid offers a Data Processing Addendum (DPA) to provide such adequate safeguards, which includes provisions for when GDPR goes into effect. SendGrid 提供数据处理附录 (DPA) 来提供此类充分的保护措施,其中包括有关 GDPR 何时生效的规定。

More info on GDPR can be found here.可以在此处找到有关 GDPR 的更多信息。 Our DPA can be reviewed and signed by filling out the information here.可以通过在此处填写信息来审查和签署我们的 DPA。

They do not support it.他们不支持。 I asked support many times, which is a strange as it would seem a company of that size could spare the dev resources to build a feature that literally all of their customers need.我多次询问支持人员,这很奇怪,因为看起来像这样规模的公司可以节省开发资源来构建他们所有客户都需要的功能。

However, https://sgwidget.com is a third party product that provides double opt in functionality for Sendgrid accounts.但是, https ://sgwidget.com 是为 Sendgrid 帐户提供双重选择功能的第三方产品。

Full Disclosure: I am a developer at SG Widget.完全披露:我是 SG Widget 的开发人员。

No, indeed still today, they do not.不,事实上直到今天,他们还没有。 Not in their forms, nor in their API is there simple, flip-switchable support for double opt-in.无论是在他们的形式中,还是在他们的 API 中,都没有对双重选择加入的简单、可切换的支持。 But, with email automation fairly recently implemented in their marketing services ("free" and "advanced" plans, not "essential") you can send an automated email directly upon sign-up.但是,最近在他们的营销服务中实施了电子邮件自动化(“免费”和“高级”计划,而不是“必要”),您可以在注册后直接发送一封自动电子邮件。

My solution is to have 2 lists for new contacts, where one is a " pre-confirmation " list and the other being the " real " list.我的解决方案是为新联系人准备 2 个列表,其中一个是“预确认”列表,另一个是“真实”列表。 Here´sa way to use automation:这是一种使用自动化的方法:

  1. Create initial signup form, either via their sparse Web forms or via your own, using HTML/JS/PHP and API endpoint:使用 HTML/JS/PHP 和 API 端点通过他们稀疏的 Web 表单或通过您自己的表单创建初始注册表单:
  2. Create 2 separate lists, one for "pre-confirmation" emails and the other for people who confirm their addresses.创建 2 个单独的列表,一个用于“预确认”电子邮件,另一个用于确认地址的人。
  3. Make the form sign up new contacts to the first list, "pre-confirmation".使表格将新联系人注册到第一个列表,“预确认”。
  4. Create a marketing automation flow that triggers upon new signups to the "pre-confirmation" list.创建一个营销自动化流程,在新注册到“预确认”列表时触发。 Make the automation trigger an email that contains a button or a link with the following link structure:使自动化触发包含按钮或具有以下链接结构的链接的电子邮件:
    • https://yoursite.com?email=user@email.com&passphrase=[phrase-you-set-manually]
    • where ?email= is your user´s email, substitute this in the email template/design by {{ Sender_Email }}其中?email=是您用户的电子邮件,在电子邮件模板/设计中将其替换为{{ Sender_Email }}
    • where &passphrase= is a phrase long enough to not be guessed.其中&passphrase=是一个足够长的短语,不会被猜到。 Since you only have one single email design here, and you can only enter one single phrase, unless you make a script or a hash, you make it difficult enough for people to think it was generated by a server:).由于这里只有一个电子邮件设计,并且只能输入一个短语,除非您制作脚本或哈希,否则人们很难认为它是由服务器生成的:)。
  5. On your server/application, yoursite.com , use $_POST['email'] and $_POST['passphrase'] , or whatever you name them, to validate the email clicks from your list and then enter all validated emails to the correct list using the PUT /marketing/contacts endpoint.在您的服务器/应用程序yoursite.com上,使用$_POST['email']$_POST['passphrase']或您命名的任何名称来验证列表中的电子邮件点击,然后将所有经过验证的电子邮件输入正确的使用PUT /marketing/contacts端点列出。
    • you may also have to delete the user from the previous list, using DELETE /marketing/lists/{id}/contacts , but I do think that the PUT /marketing/contacts takes care of placing the contact in only the lists specified in the list_ids field.您可能还必须使用DELETE /marketing/lists/{id}/contacts从以前的列表中删除用户,但我确实认为PUT /marketing/contacts负责将联系人仅放在指定的列表中list_ids字段。
    • once the contact has been entered into the correct list, you can also have a marketing automation set up for that list, which sends him/her a welcome message.将联系人输入正确的列表后,您还可以为该列表设置营销自动化,向他/她发送欢迎消息。

This method takes care of double opt-in for SendGrid without using one single email credit from the Email API (transactional plan).此方法负责 SendGrid 的双重选择加入,而无需使用来自电子邮件 API(交易计划)的单个电子邮件信用。 The only catch is that we utilize one initial and one second/final list to achieve it.唯一的问题是我们使用一个初始列表和一个第二/最终列表来实现它。

Note: the initial sign-up message that here acts as the "confirm your email" message, will be tied to the first list and will require a marketing unsubscribe link in the footer.注意:此处用作“确认您的电子邮件”消息的初始注册消息将绑定到第一个列表,并且需要在页脚中提供营销退订链接。 Make it clear in the bottom of the email that it is a temporary list, to not get any spam complaints.在电子邮件底部明确说明这是一个临时列表,以免收到任何垃圾邮件投诉。 But it will not be an issue, as we wont be sending to anyone in that list except for this initial time.但这不是问题,因为除了这个初始时间之外,我们不会发送给该列表中的任何人。 Unless you have a user who enters his/her email twice, after some time of inactivity when they forgot they already signed up.除非你有一个用户两次输入他/她的电子邮件,在一段时间不活动后他们忘记了他们已经注册了。 That could happen.那可能会发生。 But it´sa separate issue.但这是一个单独的问题。

I think this is possible by switching the flow of a typical email subscriber.我认为这可以通过切换典型电子邮件订阅者的流程来实现。 When the user clicks your subscribe button, instead of calling the sendgrid members/contact PUT api to add to your list, send an email with a link to a URL of yours that will then trigger the members/contact PUT api call.当用户单击您的订阅按钮时,不是调用 sendgrid members/contact PUT api 来添加到您的列表,而是发送一封电子邮件,其中包含指向您的 URL 的链接,然后将触发 members/contact PUT api 调用。

Not sure what stack you are using but I was able to build something like this with next.js utilizing their api routes不确定您使用的是什么堆栈,但我能够使用 next.js 利用他们的api路由构建类似的东西

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM