The code to set the session variables should be moved to the form page, and the forms action needs to be set to post to itself.
In the Universal Email wizard, you need to enter the proper smtp server to use for your hosting provider, contact your hosting provider for an smtp server address to use.