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;
LVL 1
sqlagent007Asked:
Who is Participating?

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

x
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.

dbaSQLCommented:
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.
0

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.
0
dbaSQLCommented:
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.
0
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.
0
sqlagent007Author Commented:
Thanks!
0
dbaSQLCommented:
Excellent.  Glad to have helped.
0
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
SQL

From novice to tech pro — start learning today.