Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
SRP smtp port 587 bad login or password
We have a user that has been using SRP_Send_Mail for a long while with no issues.
Today they are getting a "Bad login or password" returned from the function.
They say nothing has changed and the password is correct.
Config<1> = 2
Config<2> = ""
Config<3>= 587
Config<4>= smtp.office365.com
Config<5> = 1
Config<6>user@xxx.com
Config<7>=password
Config<8>=1
Any ideas?
Today they are getting a "Bad login or password" returned from the function.
They say nothing has changed and the password is correct.
Config<1> = 2
Config<2> = ""
Config<3>= 587
Config<4>= smtp.office365.com
Config<5> = 1
Config<6>user@xxx.com
Config<7>=password
Config<8>=1
Any ideas?
Comments
I am pretty sure this is due to Office365 changing how SMTP is enabled. Microsoft has been warning about changing SMTP authentication in Office365 for some time and seems like they have been slowly deploying that to users over time. I believe you will need to enable SMTP AUTH for the specific mailbox. Please see this article: https://docs.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submission#use-the-microsoft-365-admin-center-to-enable-or-disable-smtp-auth-on-specific-mailboxes
I have also seen posts where the user was able to enable 2FA for the account and then create an App Password and use that for SMTP. I am not sure if that is still a valid method but another trick to try.