- John Murphy
- PowerBuilder
- Wednesday, 6 October 2021 10:00 PM UTC
My admin swears he has set my account to allow it but I get the following errors.
using - STARTTLS error - Send Email Error: -4 535 5.7.139 Authentication unsucessful, the user credentials were incorect. [MN2PR15CA0001.namprd15.prod.outlook.com]
using - SSL/TSL error - Send Email Error: -4 The token supplied to the function is invalid.
I tried with Auth Method LOGIN and XOAUTH2 - actually I tried every combo of Auth Method and Connection Type
I also tried with my email address and windows username.
This is what I first thought would work as the same settings work with gmail.
dw_settings.SetItem(1, "server", "smtp.office365.com")
dw_settings.SetItem(1, "userid", "john.murphy@whartonhardware.com")
dw_settings.SetItem(1, "password", "**")
dw_settings.SetItem(1, "port", 587)
dw_settings.SetItem(1, "conntype", 1)
dw_settings.SetItem(1, "authmethod", 2)
dw_settings.SetItem(1, "characterset", "windows-1252")
Works with gmail:
dw_settings.SetItem(1, "server", "smtp.gmail.com")
dw_settings.SetItem(1, "userid", "john.murphy@mssrfc.com")
dw_settings.SetItem(1, "password", "**")
dw_settings.SetItem(1, "port", 465)
dw_settings.SetItem(1, "conntype", 1)
dw_settings.SetItem(1, "authmethod", 2)
dw_settings.SetItem(1, "characterset", "windows-1252")
Email from my admin:
John, under your mailbox everything is checked
Outlook on the web
Outlook desktop
Exchange web services
Mobile (Exchange active sync)
IMAP
POP
Authenticated SMTP
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.