Uncommented code to send emails