jak writes:
> Il 23/08/2021 13:12, Loris Bennett ha scritto:
>> Jon Ribbens writes:
>>
>>> On 2021-08-23, Loris Bennett wrote:
If instead of
mail.set_content(body)
I do
mail.set_content(body, cte="quoted-printable")
>>>
>>> Try print(mail.get_content())
Il 23/08/2021 13:12, Loris Bennett ha scritto:
Jon Ribbens writes:
On 2021-08-23, Loris Bennett 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 -
Jon Ribbens writes:
> On 2021-08-23, Loris Bennett 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
--
T
Bötland
>
> which is how the text appears in the mail.
>
> The 'ö' in 'Bötland' triggers the encoding - with 'Botland' the text
> printed to the terminal is the same way as that in the mail.
>
> How do I decode the message properly for an termi
On 2021-08-23, Loris Bennett 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())
--
https://mail.python.org/mailman/listinfo/python-list