exception handling for bad mail config
username not available
fixing imports
fixing imports
fixing imports
fixing imports