stuff for email functionality...