Skip to content

C# SMTPClient uses lowercase login AUTH method #542

@TheRolfFR

Description

@TheRolfFR

Hello,

I am currently implementing a smtp handler from requests coming from a C# System.Net.Mail.SMTPClient instance with credentials (code).

I didn't understand the problem until I discovered with tcpdump that the login method is spelled "login" in lowercase:
Image

and indeed your code is not doing any case matching on the said authentication method:
Image

Would it be possible to transform method to uppercase before handling it?

mechanism = mechanism.upper()

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions