removed duplicate to and sending email in dev mode