Alright, in the code, I can see where the problem is.
For the To address, you have used the email data binding from the Validated Entries collection. The validated entries are crated by the Server Validation *when validation fails*. If validation passes, these variables do not have a value.
Bind the to address to the email data binding in the form collection instead.