Does anyone know if ATG has some out-of-the-box component that validate an email address when it is changed?
I am talking about something like this: I have an user, this user come to the account and change the email, after this an email is sent to confirmate that the new status email is valid.
Someone can help me?
Thanks a lot.
Oracle commerce does provide the functionality you are looking for. But it's easily implement using EmailSender components (SMTLEmailSender for text based emails and TemplateEmailSender for HTML emails).
Implement following logic custom formhandler or extend ProfileFormHandler.posUpdateUser() method
1. Send a confirmation email using EmailSender component (Refer Programming guide for details)
2. Catch EmailInvalidSenderException and add form exception stating email is invalid
ATG's emailing API relies on DMS and can be asynchronous, make sure you use synchronous messaging.