I am trying to send emails via go code. My SMTP server is MS Exchange which supports only Login Auth. Can someone please share code snippet for the same? or share some link which can help me in accomplishing this task.
I have no code to share, but maybe one of the existing email packages is what you are searching for.
Do you mean the PLAIN authentication mechanism as defined in RFC 4616? Go has support for that:
Thanks christophberger, lutzhorn for your suggestions but in my SMTP PlainAuth is not supported; my SMTP supports only LoginAuth which expects base64 encoded username & password. Any suggestions specific to LoginAuth?
Maybe you can take a look at https://github.com/trapped/gomaild which supports Login Authentication. I’ve not tried it so I can’t tell you if this is a good package.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.