I am using UserManagement.initSelfRegistration() to send an email with a verification code. I am wondering how can I customize an email that is sent during this process? I found one template in Classic Email Templates, but it seems that Salesforce uses another template. After I customized the "Communities: One-Time Password Email" email template, I still received the system email.
1 Answer
Try going to Setup > All Communities, and then:
-
1Nope, that didn't work. The email I am getting has subject "Sandbox: Verify your new account in <community name>" while the subject from the Communities: One-Time Password Email template is "Verify your identity in {!Community_Name}"– EduardDec 24, 2019 at 8:09
-
1Yeah, there’s no mention to customizing the email template for the self verification challenge in the doc for UserManagement class (developer.salesforce.com/docs/atlas.en-us.apexcode.meta/…). I guess it is not supported at the time. Dec 24, 2019 at 12:17
-
-
1