7

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.

enter image description here

1 Answer 1

2

Try going to Setup > All Communities, and then:

  1. Click "Workspaces" next to the Community you want to modify the email template for enter image description here

  2. Go to "Administration" enter image description here

  3. Explicitly select the template you want to use for One-Time Password enter image description here
4
  • 1
    Nope, 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}"
    – Eduard
    Dec 24, 2019 at 8:09
  • 1
    Yeah, 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.
    – Ideasforce
    Dec 24, 2019 at 12:17
  • @Eduard did you ever find a solution to this?
    – Jeff
    Aug 2, 2021 at 19:53
  • 1
    @Jeff, unfortunately no
    – Eduard
    Aug 3, 2021 at 10:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .