Sergey Lavrinenko
Sergey Lavrinenko
One who don't have bugfix e195fca can pass headers as a list I guess: ``` msg.attach(..., headers=[['Content-ID', ''],]) ```
Can you show your mail settings?
Can you show some code to reproduce this?
Well, there is too much conditions to reproduce something. May be you can show your traceback?
Hi, r-pluss! Sorry for being so late with response. I definitely want to fail fast when email body is empty. It should protect from sending empty (i.e. broken) emails to...
Yep, that code looks weird. I'm surprised too.
Guess here is typo in L133 - second check was to ensure that `n` is a string or None. But it's clear to me now that heuristics should be rewritten...
I'd recommend creating custom backend class. Inherit from `SMTPClientWithResponse` and redefine `initialize` method to call starttls with custom context. Something like this: `self.startls(context=ssl.SSLContext(ssl.PROTOCOL_TLSv1_2))` (not tested)