Content
You are here:
Microsoft365 SMTP email
Added by Peter Tabori about 1 year ago
Dear all,
we just migrated from google workspace to Microsoft 365. Email sending worked flawlessly with google, but now I can not make it work with Microsoft.
Emission email address matches SMTP username
server = smtp.office365.com
port = 587
smtp helo = companyname.com
authentication = tried all, none of them worked
username= user@companyname.com
password = generated App-password
STARTTLS = on
Whenever try to send a test email I get:
An error occurred while sending mail (Net::ReadTimeout with #46142
In the MS-tenant admin interface SMPT is enabled.
Replies (2)
Hi, I had the same problem in send mail after migrating from Gmail to Microsoft365.
In my case , I'm getting error message as "An error occurred while sending mail (getaddrinfo: Name or service not known)".
If I try the same credentials and all other settings in windows forms application(using c#), I was able to send mails using MailMessage concept.
Only additional line that i had added in windows forms application is "System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12", In OpenProject is there a way that i can add this line in configuration file manually.
Hi Peter - Did you manage to resolve this as I have the same problem. Thanks