To configure SMTP for sending customized emails via AD B2C, you can use the Azure AD B2C custom email feature. This feature allows you to configure an SMTP server to send emails from your own email address, rather than from the default Azure AD B2C email address.
To set up the SMTP server, you will need to follow these steps:
- In the Azure portal, navigate to the Azure AD B2C tenant that you want to use for sending customized emails.
- In the left navigation, click on "Identity Experience Framework" and then select "Email Templates" from the drop-down menu.
- In the "Email Templates" blade, click on the "Add" button to create a new template.
- In the "Create Email Template" blade, enter a name for the template and select the appropriate language.
- In the "SMTP Configuration" section, enter the SMTP server details. This will include the host name, port, username, and password.
- In the "Customized Email" section, you can customize the email subject and body. You can also add custom fields and tokens to the email.
- Click on "Save" to create the template.
- To use this template in your technical profile, you will need to add the "CustomEmail" technical profile to your policy and reference your new template.
Once you have set up the SMTP configuration, you can use the CustomEmail technical profile to send customized emails via AD B2C. Be sure to test the configuration before deploying it to production.
Documentation :-