Add email delivery logic.