I was struggling with my SQL Server 2016 database mail after installing the Free Developer edition of Sql Server 2016. My server contains Microsoft Windows Server 2012 and I enabled the SMTP server. The SMTP server (local) was working fine but database mail refuses to work!
After spending hours on checking all configurations, asking colleagues, testing the SMTP Server (works, also via SSIS ) I gave up. Till I checked my Twitter timeline and found this article.
So if you’ve gone through all the usual steps to troubleshoot Database Mail (or these steps) in SQL Server 2016 to no avail, be sure to double check that the .Net 3.5 Framework has been installed. If not, you will need to install it, then apply ALL the patches for it.
That was It! I installed the .net framework 3.5 and all my mails where send immediately.
Frequently asked questions
Why does Database Mail not work in SQL Server 2016?
A missing .NET Framework 3.5 can be the cause. After .NET 3.5 was installed on a SQL Server 2016 server, all mails were sent immediately.
How do I fix SQL Server 2016 Database Mail that refuses to send?
Check that the .NET 3.5 Framework is installed. If not, install it and then apply all the patches for it. Do this after you went through the usual Database Mail troubleshooting steps.
Does Database Mail need .NET Framework 3.5 in SQL Server 2016?
Yes, in this case. Database Mail did not work until .NET Framework 3.5 was installed. The local SMTP server worked fine, also from SSIS.
Should I install patches after I install .NET 3.5 for Database Mail?
Yes. Install the .NET 3.5 Framework and then apply ALL the patches for it.
What setup did the Database Mail problem occur on?
SQL Server 2016 Free Developer edition on Windows Server 2012, with the local SMTP server enabled. The SMTP server worked, but Database Mail did not.
Comments
Related blogs
Postcode table of the Netherlands + SQL Script
Setup sp_send_dbmail attachment included!
Free E-Book SQL Server 2016