yay emailing functionality