email functionality integration