testing email functionality