Added sending confirmation email.