Decoding of EmailMessage text
Loris Bennett
loris.bennett at fu-berlin.de
Mon Aug 23 07:12:57 EDT 2021
Jon Ribbens <jon+usenet at unequivocal.eu> writes:
> On 2021-08-23, Loris Bennett <loris.bennett at fu-berlin.de> wrote:
>> If instead of
>>
>> mail.set_content(body)
>>
>> I do
>>
>> mail.set_content(body, cte="quoted-printable")
>
> Try print(mail.get_content()) rather than print(mail.as_string())
That did the trick - thanks!
Cheers,
Loris
--
This signature is currently under construction.
More information about the Python-list
mailing list