added generateMailto() function for email link