Compiled send emails code