Modern Authentification

Just starting out? Need help? Post your questions and find answers here.
User avatar
stefanpape
User
User
Posts: 14
Joined: Sun Aug 04, 2013 11:12 am

Modern Authentification

Post by stefanpape »

Does anyone know how to program sending emails with Modern Authentication (OAuth 2.0) using PureBasic? For example, Exchange Online no longer accepts SMTPS. As far as I know, you can currently disable OAuth 2.0 in Exchange, but some users don't want that.

Thank you in advance for your help.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Modern Authentification

Post by Fred »

For this you need to send a bearer token, which is not yet supported by PB:

https://curl.se/libcurl/c/CURLOPT_XOAUTH2_BEARER.html
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Modern Authentification

Post by Fred »

And a nice post here showing how to do it: https://www.purebasic.fr/english/viewtopic.php?t=82540
Post Reply