Skip to content

What is wrong with this email related code #131777

@rkd77

Description

@rkd77

Bug report

Bug description:

from email.header import Header
from email.message import EmailMessage
from email.policy import EmailPolicy

message = EmailMessage(EmailPolicy(utf8=True))
subject = 'TEST TEST SSL certificate for the domain a.b.c has been created'
message['Subject'] = Header(subject, 'utf-8').encode()

I guess it is a bug.

CPython versions tested on:

3.9

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions