mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
email.message: Allow any header value (#11574)
This commit is contained in:
6
test_cases/stdlib/email/check_message.py
Normal file
6
test_cases/stdlib/email/check_message.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from email.headerregistry import Address
|
||||
from email.message import EmailMessage
|
||||
|
||||
msg = EmailMessage()
|
||||
msg["To"] = "receiver@example.com"
|
||||
msg["From"] = Address("Sender Name", "sender", "example.com")
|
||||
Reference in New Issue
Block a user