Open emmy-colgate opened 7 years ago
I had the same problem. So I ended up not using the subscription widget, but used default wp_function and set template ID on the headers. The problem with this is that, now user email address is not being stored on the marketing campaign contacts list.
I’m running a wordpress site and am using sendgrid’s subscription widget to collect email addresses from people who sign up for our mailing list.
I created a transactional template in sendgrid and inputted the resultant id number into the sendgrid general settings on my wordpress dashboard. The template and subscription widget work correctly -- when a user inputs their email address, they receive the confirmation email and are able to confirm their subscription through the link provided in the email.
The issue is that this template is now overriding every email sent by wordpress. For example, one of the admins on my wordpress account forgot his password and when he requested a password reset from wordpress, he received only the confirmation email (the template that is intended only for the subscription widget) and not a password reset link from wordpress.
Is there a way to integrate sendgrid and wordpress such that the template is only active for the subscription widget and not for other email transactions made through wordpress? I’m also curious about whether I am able to use the AB test function of sendgrid with the subscription widget.