Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending without auth? #59

Closed
cemremengu opened this issue Oct 18, 2017 · 3 comments
Closed

Sending without auth? #59

cemremengu opened this issue Oct 18, 2017 · 3 comments

Comments

@cemremengu
Copy link

One of our clients gave us an account on their SMTP server to send mails. However, it does not have any password so it fails all authentication methods (I tried PlainAuth which the server does not recognize and LoginAuth implementation which the server recognizes but fails to auth)

Is there a way for this kind of situations for bypassing the auth?

@cemremengu
Copy link
Author

Apparently the server is using NTLM based auth. I am trying to implement one using the approach discussed here for login auth and this lib for NTLM over http.

Would you be interested in a PR @jordan-wright if I can successfully implement this?

@blob42
Copy link

blob42 commented Feb 2, 2018

I had the same issue, you just need to use

e.Send("localhost:<yourport>", smtp.PlainAuth("", "", "", "localhost"))

@cemremengu
Copy link
Author

Forgot to close 😄

I solved this problem sometime ago with &tls.Config{InsecureSkipVerify: true}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants