May 19, 2017 at 2:15 pm
I just asked my system admin to provide me with the SMTP server details so I can use that info to configure DB mail since we don't have that setup. He asked me how it works like how SQL Server uses this info to send out alerts and I made that "NO CLUE" face. Can someone please help me understand how SQL Server uses DB mail to send out alerts to users? Just curious.
May 19, 2017 at 2:59 pm
Well, SQL won't *just* send out alerts. You need to set them up.
Configuring SMTP relay in a mail profile is the first step.
Here is how to set up a mail profile: https://docs.microsoft.com/en-us/sql/relational-databases/database-mail/configure-database-mail
Then you can configure your own alerts to send email using sp_send_dbmail, or configure an Operator in SQL Agent Properties to receive certain alerts.
Setup of built-in SQL Alerts overview here: https://www.mssqltips.com/sqlservertip/1523/how-to-setup-sql-server-alerts-and-email-operator-notifications/
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle
May 20, 2017 at 8:43 am
Database mail isn't a mail server - that's Exchange. Database mail needs a mail server because it can't send email. It builds up what it needs and sends it off to the mail server, which is what actually sends the email. You provide the SMTP server as a part of the mail profile. Once you get it set up and tested, you can configure alerts using the link Henrico posted above.
May 20, 2017 at 12:04 pm
DatabaseMail , in a way, is exactly like any other mail client...office365,ThunderBird, Google Mail, etc. it just uses a connection to a real mail server to forward an email, which the mail server then distributes.
you provide it with the connection info:
Lowell
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply