Skip to main content
Question

Error sending SMTP email from Automation using Office365 account with MFA


spatialcase
Contributor
Forum|alt.badge.img

Hi, I am using the Email(Send) action within an Automation but am unable to get it to work.

I am using: smtp.office365.com on port 587 and StartTLS encryption.

The office365 email account has MFA enabled and so I am using an App password.

I am able to use the same configuration within the FME Desktop Emailer transformer just fine - but the same parameters do not work within the FME Cloud automation.

Error message is:

"com.microsoft.aad.msal4j.MsalInteractionRequiredException: AADSTS50126: Error validating credentials due to invalid username or password"

My FME Cloud instance is running "FME Server 2022.2.1 Build 22776 - linux-x64"

I have also supplied an App Client ID by registering an App within am Azure AD as described in this article but it does not resolve this issue:

https://community.safe.com/s/article/How-to-use-Microsoft-Modern-Authentication-with-FME#ForServer

Any Ideas?

Thanks

4 replies

hkingsbury
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • April 19, 2023

You might need to look at producing an app password on 365 (assuming it supports that)


spatialcase
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • April 20, 2023
hkingsbury wrote:

You might need to look at producing an app password on 365 (assuming it supports that)

Thanks, but as mentioned above I am already using an App password. The settings that work fine in the Emailer Transformer do not work within the Automations Send Email action.


keziaatsafe
Safer
Forum|alt.badge.img+7

hkingsbury
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • April 21, 2023
spatialcase wrote:

Thanks, but as mentioned above I am already using an App password. The settings that work fine in the Emailer Transformer do not work within the Automations Send Email action.

Sorry, I missed that re the app password - seconding what Kezia has said below


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings