DonorWise TM
Enhanced communication with donors, enhanced ministry credibility...

What are the SMTP settings for Microsoft 365?

Table of Contents

It is our pleasure to provide this software free of charge to help you in your ministry.  We're so thankful for our partners who make this possible!

About TntWare

Page Details

First published by:
Troy Wolbrink
on 12 Jan 2022
Last revision by:
Troy Wolbrink
on 20 Nov 2024
This page has not yet been rated

What are the SMTP settings for Microsoft 365?

Filed under: [Edit Tags]

Prerequisites

To support sending email receipts from DonorWise through Microsoft 365, there are two requirements.

#1)  You must be running DonorWise 4.1.19 or newer.  This version adds support for SMTP over TLS 1.2.

#2) You must enable Basic Authentication over SMTP on your MS 365 instance.  

To enable Basic Authentication for SMTP on Microsoft 365

Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5
Set-ExecutionPolicy RemoteSigned
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName troy@tntware.com
Set-TransportConfig -SmtpClientAuthenticationDisabled $false
Set-CASMailbox -Identity troy@tntware.com -SmtpClientAuthenticationDisabled $false
Disconnect-ExchangeOnline

Be sure to replace troy@tntware.com with the email address you're using to send receipts from.

Your MS 365 instance may require additional steps.  These instructions were based on this MS article and this MS article.

As of September 2024, this article from Microsoft seems to have the most comprehensive information:  
How to set up a multifunction device or application to send emails using Microsoft 365 or Office 365

SMTP Settings

Under the "Tools" menu, click on "System Setup".  In the SMTP section.  Use the following settings:

  • Server:  smtp.office365.com
  • Port: 587
  • SSL/TLS:  Explicit
  • TLS 1.2
  • Set both User and From to the email you're sending from.

  


If you receive error, "5.7.57 Client not authenticated to send mail":

https://learn.microsoft.com/en-us/exchange/troubleshoot/email-delivery/fix-issues-with-printers-scanners-and-lob-applications-that-send-email-using-off#fix-issues-with-smtp-auth-client-submission

Within this web page, search for the text, "Client not authenticated to send mail" to find Microsoft's specific guidance on what to do. 

You may notice that it suggest turning off MFA for the account being used to send email

Recent Comments

By: VP Admin Posted on 12 Oct 2022 5:19 PM

Excellent! Thank you, Troy.

Jay

By: Austin Krokos Posted on 15 Nov 2024 6:43 PM

Is this still the way to set up an Outlook email in order to send receipts? If so, can you explain in greater detail how to do the Basic Authentication and how to run the Power Shell program. I was able to change the SMTP Settings within Donorwise. Thank you.

By: Troy Wolbrink Posted on 25 Nov 2024 8:10 PM

Hi Austin,  As far as I know this is how it's done.  Microsoft makes it tremendously tricky to be able to send emails via SMTP with Basic Authentication.  I'm not providing general IT support, so I won't get into how to run PowerShell scripts.  That's between you and Microsoft.  However, I would mention this, other email providers like Mailgun and SendGrid make it tremendously EASY to send via SMTP.

try.mailgun.com/smtp-services

sendgrid.com/.../smtp-service

By: Troy Wolbrink Posted on 28 Nov 2024 2:13 AM

As an alternative, if you have Outlook installed and working, you might try sending email through Outlook:  www.tntware.com/.../how-can-i-send-email-receipts-through-my-installed-outlook-desktop-application.aspx