Fix sending mails in combination with CRAM-MD5 authentication
Fix sending mails in combination with CRAM-MD5 authentication

Under Python 2, we need to pass passwords as bytestrings, while Python 3
expects passwords as (unicode) strings.

Fixes #1637

privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea