We need to send an email to people who fill in our registration form. We will process their request only after they confirm the email they provided in the form. Send Async Email Verifications and UserManagement Class do not work for us because requests can come from people that are not in Salesforce.
I know it's possible to create a custom confirmation process in Salesforce that would send an email with a verification link. But I'd like to know if there are any advice or best practice around this. In particular I am interested in:
- How to build a confirmation link itself:
- what data should we include (email of the person, some random string that uniquely identifies that request)?
- should this data be encrypted?
- I suppose we need to implement a public page which the link will point to. Once people click on the link, they will be redirected on the page and this is when we can confirm email address. So what are the key points I should pay attention to create a robust implementation?
This can be seen as a broad question, but before asking I googled it and couldn't find any useful material with regards to Salesforce. So I am hoping this community could cast some light on this.