modern email authentication

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
bbrink
Pro Scripter
Posts: 70
Joined: Thu Dec 31, 2009 2:36 am
Location: Minnesota
Contact:

modern email authentication

Post by bbrink » Wed Oct 05, 2022 11:06 am

Hello,

My apologies if this is addressed elsewhere in the forum, I did a brief search and did not find it.

Are there plans to add or have you added "modern email authentication", since basic auth is deprecated and will no longer be supported in Microsoft Exchange, and by extension Office 365?

Thank you,

Bob

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1390
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: modern email authentication

Post by Dorian (MJT support) » Wed Oct 05, 2022 12:12 pm

Hi Bob,

I think this is what you're referring to. You will need to create an App Password:

https://docs.microsoft.com/en-gb/azure/ ... -passwords

https://support.google.com/accounts/answer/185833?hl=en

So instead of using your usual credentials on the smtp auth you would use an app password created for the purpose as explained in the links above.
Yes, we have a Custom Scripting Service. Message me or go here

bbrink
Pro Scripter
Posts: 70
Joined: Thu Dec 31, 2009 2:36 am
Location: Minnesota
Contact:

Re: modern email authentication

Post by bbrink » Mon Oct 10, 2022 5:31 pm

Hi,

Actually OAUTH 2.0. The requirements I see are...
URL
Client ID
Scope
Client Secret

I have one other post regarding OAUTH from last April. I found a work around for that one, it was for a web app, not email.

Since email is moving this way "soon" I was wondering if an update mail client or built in handling of OAUTH for email might be in the works.

Bob

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1390
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: modern email authentication

Post by Dorian (MJT support) » Mon Oct 10, 2022 7:46 pm

I asked Marcus for clarification.

Macro Scheduler does not support oAuth. To send emails from Macro Scheduler you'd need to use a service that lets you provide a username/password or equivalent
Yes, we have a Custom Scripting Service. Message me or go here

ocnuybear
Pro Scripter
Posts: 100
Joined: Sun Jul 15, 2018 5:14 pm

Re: modern email authentication

Post by ocnuybear » Tue Oct 11, 2022 1:27 pm


bbrink
Pro Scripter
Posts: 70
Joined: Thu Dec 31, 2009 2:36 am
Location: Minnesota
Contact:

Re: modern email authentication

Post by bbrink » Tue Oct 11, 2022 1:43 pm

I will check 'em out, thank you!

captain_dog
Newbie
Posts: 2
Joined: Tue Jun 25, 2024 2:04 pm

Re: modern email authentication

Post by captain_dog » Tue Jun 25, 2024 2:09 pm

Any updates on this or ways to use oAuth with Macro Scheduler?
I'm trying to access a Microsoft365/Office365 mailbox via RetrievePOP3 and even an app password is no longer accepted.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1390
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: modern email authentication

Post by Dorian (MJT support) » Tue Jun 25, 2024 3:40 pm

I just double-checked and app passwords are working with Outlook and RetrievePOP3.

App Passwords.

You'll also need to let Apps and Devices use POP

>Outlook.com > Mail >Sync Email >Let Devices and Apps use POP

This is the code I used :

Code: Select all

//Retrieve POP3
let>POP3_STATUS=1
let>popserver=outlook.office365.com
Let>POP3_PORT=995
Let>POP3_TIMEOUT=5
Let>POP3_SSL=1
Let>TLS_VER=12

RetrievePOP3>popserver,[email protected],MY_APP_PASSWORD,d:\emailfiles
MessageModal>POP3_RESULT
Separate>POP3_MSGFILES,;,MsgFiles
MessageModal>Files Downloaded: %MsgFiles_count%%CRLF%File List: %POP3_MSGFILES%
Yes, we have a Custom Scripting Service. Message me or go here

captain_dog
Newbie
Posts: 2
Joined: Tue Jun 25, 2024 2:04 pm

Re: modern email authentication

Post by captain_dog » Wed Jun 26, 2024 1:03 pm

When I run that code, I get "Logon failure: unknown user name or bad password." even after following the instructions to set up an app password.
Also, I tried setting up pop3 forwarding to a gmail account, and I'm getting a connection timed out error.
The outlook account is technically microsoft365 through godaddy, so I'm wondering if there's some underlying issue there.
Thanks for the response. I'll continue to investigate.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts