Fixed $to. Changed headers. Adding mail test
Remove line and add email to confirmation email.