It still is not clear to me what you are asking about.
The SupportEmailSender
class that you linked to makes sure emails are sent to website visitors when they submit a form. That form is not created with the Form Builder, which is why I need to programmatically send the email in code.
If the form was created with the Form Builder I could use an automation or form autoresponder, and both are configured in Xperience's administration UI, not in code.
The email recipient data for the email sent in SupportEmailSender
comes from the form data submitted by the visitor. There's nothing special going on here. The ContactInfo
comes from ContactManagementContext.CurrentContact
as you can see in the source code.