Jump to content
rudy999

help needed -ICS v8 in Delphi11 vs ICS v9 on Delphi12

Recommended Posts

I have an application that sends emails via outlook office 365.  The application uses the Overbyte components sslsmtpclient, sslcontect, icsrestemail

and was developed in Delphi 11 on Windows 10 (ICS v8), and the co ordination to obtain 'tokens' etc with a web page initially popping up to log in  to MS and verify the user continues to work.

 

With the release of Delphi 12 last year I am using ICS v9.  The application behaves the same on an initial email send attempt to obtain tokens and authorize against the microsoft outlook com user, HOWEVER the web page login now 'redirects' to a GITHUB LOGIN to get to microsoft... THIS IS different than ICS v8 application. I have a GITHUB account but my users DO NOT.. (and do not need one)

 

It has been over 1 year since I developed the Delphi 11 ICS v8 application - is there some low level source code settings that I need to modify 'not' to use GITHUB or a setting in one of the components I am missing?

 

Thanks in advance all - PS Happy New Year!

Share this post


Link to post

The URLs used for Rest Email are at the top of the OverbyteIcsSslHttpOAuth.pas unit, and have not changed since the unit was created, except to allow <MsUserAuth> instead of consumer, are you setting MsUserAuthority correctly?

 

Angus

 

Share this post


Link to post

what are the options  - I see that this is a new entry - at the moment it says consumers.  Can I leave it blank?

tia😮

Share this post


Link to post

I changed the setting from consumers to common - I think it may work

Share this post


Link to post

As the comments in the code say, the MsUserAuthority setting depends on the account type that the credentials relate to, mainly for corporate accounts, common and consumer are for general email accounts, the older version defaulted to consumer.

 

Angus

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×