Closed kalombos closed 6 years ago
Can you give more information on you environment? I can't reproduce on my:
$ python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from emails import Message
>>> message = Message(
... subject='test',
... html='<html>Привет</html>', mail_from="test@test.com"
... )
>>> message.send(to='test@test.com')
<emails.backend.SMTPResponse status_code=250 status_text=b'2.0.0 Ok: queued as E6FA0161878'>
>>> import emails; emails.__version__
'0.5.15'
Yeah, you are right, i didn't get errors in console too. But i still have this error in some cases in my flask application. I'll analyze these cases and tell you about results. For the moment i found that error raising depends on place where i import package.
It was because of flask-mail package when i removed it from application your package worked fine. Sorry for the wrong issue and thanks for the help.
Here is the code:
and the error: