This is code that send emails