Email functionality (#21 and #55)