Which causes the call to 'send_mail' in utils.py (line 403) to fail because Flask-Mail calls 'sanitize_address' function as part of sending the msg:
# flask_mail.py line 105
def sanitize_address(addr, encoding='utf-8'):
if isinstance(addr, string_types):
addr = parseaddr(force_text(addr))
nm, addr = addr
ValueError: too many values to unpack
Flask-Security 3.0.0 Flask-Mail==0.9.1
The extension uses the attribute 'email_sender' for the mail sending operations, but the attribute is not a string, its a LocalProxy object:
In core.py:
Which causes the call to 'send_mail' in utils.py (line 403) to fail because Flask-Mail calls 'sanitize_address' function as part of sending the msg: