alex-oleshkevich / mailers

Email delivery for asyncio.
MIT License
22 stars 1 forks source link

chane policy #7

Closed canardoFR closed 1 month ago

canardoFR commented 2 months ago

Hi,

current policy is EMailPolicy with falls back to default.

BUT, default is not SMTP: https://docs.python.org/3/library/email.policy.html#email.policy.EmailPolicy email.policy.default An instance of EmailPolicy with all defaults unchanged. This policy uses the standard Python \n line endings rather than the RFC-correct \r\n.

    email.policy.SMTP
    Suitable for serializing messages in conformance with the email RFCs. Like default, but with linesep set to \r\n, which is RFC compliant.

Thus, the policy should be set to SMTP...

Cheers