SQL 2016 database mail not working even though I have tired many things

For some reason I am NOT able to get SQL Mail working on a particular server running SQL 2016. I can send a message from powershell no problem.

I have done the following:
  • Enabled database mail
  • Checked the box for enable mail in the SQL agent
  • Restarted both SQL Agent and SQL Server
  • Attempted to send a test message.
  • Started the SQL Browser
  • Added the SQL Engine and agent account to the local admins group

When I run this query, I show all test messages in the UNSENT queue and 0 messages in the sent queue

SELECT * FROM msdb.dbo.sysmail_sentitems;
SELECT * FROM msdb.dbo.sysmail_unsentitems;
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I had the same problem, and learned that v2016 mail needs netframework 3.5 to work.  You should load .net 3.5 and restart the service.  Afterward the mail will work fine.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sqlagent007Author Commented:
On the other server where it is working, that feature is not installed.....? They are part of an AAG...? Crazy right!?!?! I will try installing it.
I had exactly the problem you've described -- all the way to the 'unsent' messages.  After .net and the restart, everything worked fine.  I also received all of the unsent messages that were previously unsent.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

sqlagent007Author Commented:
You were correct. Once .net 3.5 was installed, all the mail came through.
sqlagent007Author Commented:
Excellent.  Glad to have helped.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.