简体   繁体   中英

How Can I connect the SendGrid dynamic templates to azure custom policy to send custom verification e-mail?

I searched so many times about this this problem, but I couldn't find anything. Please help me if you know. I have a B2C on azure portal. In here, there is a policy. If I use this policy to verify the e-mail, it works without problem. But I want to use 2 different policy to send different verification e-mail. So I added new custom policy. But when I click to "run now" sigin_and_signup policy it verified with other verification e-mail. By the way I created APIKey and tenantID(d-abcsdsvxxxxxxx) on the sendGrid portal.

The docs should be able to help you out with how SendGrid can be integrated with B2C to send custom verification emails. If you want to send a completely customised verification email (instead of the AAD default email) then you need to follow that documentation step-by-step.

If you've already implemented custom email verification templates and your two policies are both using the same template instead of different ones then the part you're probably having problems with is the claims transformation . If you take a look at that section of the docs you'll see that there's a template_id , that's the id of the specific SendGrid email template that B2C will use.

If you want there to be two different custom email templates used then you'll need two different claims transformations, each with the template_id of the email it should be using. You'd also need two SendOtp technical profiles, each using a different claims transformation.

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