How to access office 365 mailbox by Golang

%3CLINGO-SUB%20id%3D%22lingo-sub-3321534%22%20slang%3D%22en-US%22%3EHow%20to%20access%20office%20365%20mailbox%20by%20Golang%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3321534%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20What%20is%20recommended%20practice%20for%20Golang%20to%20access%20office%20365%20mailbox(read%26amp%3Bsend%20mails)%20after%20basic%20authentication%20turn%20off%3F%20I%20guess%26nbsp%3Bmsgraph-sdk-go%20should%20be%20a%20good%20choose%2C%20but%20use%20it%20in%20production%20is%20not%20suggested.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liangchen2022_0-1651740417732.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369401i1A22A0C5F25338F9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Liangchen2022_0-1651740417732.png%22%20alt%3D%22Liangchen2022_0-1651740417732.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fclient-developer%2Flegacy-protocols%2Fhow-to-authenticate-an-imap-pop-smtp-application-by-using-oauth%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fclient-developer%2Flegacy-protocols%2Fhow-to-authenticate-an-imap-pop-smtp-application-by-using-oauth%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fsdks%2Fcreate-client%3Ftabs%3DGo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fsdks%2Fcreate-client%3Ftabs%3DGo%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liangchen2022_1-1651740432313.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369402i13F23D262E57BEB4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Liangchen2022_1-1651740432313.png%22%20alt%3D%22Liangchen2022_1-1651740432313.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fsdks%2Fcreate-client%3Ftabs%3DGo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fsdks%2Fcreate-client%3Ftabs%3DGo%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3321534%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EEmails%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Egolang%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hi,

    What is recommended practice for Golang to access office 365 mailbox(read&send mails) after basic authentication turn off? I guess msgraph-sdk-go should be a good choose, but use it in production is not suggested. 

Liangchen2022_0-1651740417732.png

https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-i...

 

https://docs.microsoft.com/en-us/graph/sdks/create-client?tabs=Go

 

Liangchen2022_1-1651740432313.png

https://docs.microsoft.com/en-us/graph/sdks/create-client?tabs=Go

 

0 Replies