简体   繁体   中英

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?

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.

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; or Building a SendGrid Subscription Widget.

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.

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. Thus, SendGrid cannot restrict data to the EU. However, neither current EU law nor the GDPR require this. 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 offers a Data Processing Addendum (DPA) to provide such adequate safeguards, which includes provisions for when GDPR goes into effect.

More info on GDPR can be found here. Our DPA can be reviewed and signed by filling out the information here.

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.

Full Disclosure: I am a developer at 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. 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. 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:
  2. Create 2 separate lists, one for "pre-confirmation" emails and the other for people who confirm their addresses.
  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 }}
    • where &passphrase= is a phrase long enough to not be guessed. 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.
    • 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.
    • 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). 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.

Not sure what stack you are using but I was able to build something like this with next.js utilizing their api routes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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