Added support for 'email_function' in Azure

This is useful if django.user.email is not the desired user email.