Skip to content

net/smtp: add support for AUTH LOGIN #9899

Description

@homme

The Microsoft Exchange SMTP server I connect to at work supports AUTH LOGIN. It would be nice to have support for this in net/smtp.

After hunting around I found and adapted some MIT licensed code which implements this. This works for me and I have checked it against Python's smtplib implementation. It may, however, benefit from the same TLS checks that are in place in PlainAuth.Start as the credentials are similarly sent over the wire in plain text.

I am using go version go1.4.1 linux/amd64.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions