Add mail sending functionality