def is_smtp_enabled(backend=None):
 if (backend is None):
  backend = get_mail_backend()
 return (backend not in settings.SENTRY_SMTP_DISABLED_BACKENDS)

def is_smtp_enabled ( backend = None ) : if ( backend is None ) : backend = get_mail_backend ( ) return ( backend not in settings . SENTRY_SMTP_DISABLED_BACKENDS )
check if the current backend is smtp based .