you have the sub defined inside of the function WA_Universal_Email_1_SendMail(RecipientEmail) code.
a sub cannot be defined inside of a function, you will need to move the sub routine code outside of the function code.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.