Deleted and added some functionality

Added the functionality of sending emails, and also sending the
confirmation email to the sender. Also added the thank you page.