provide application context for email send() function