added send-an-email snippet