0% found this document useful (0 votes)
21 views

Configuration de Send Mail Sqlserver

This document outlines 15 steps to configure database mail in SQL Server to allow sending emails from the database. The steps include setting up a new mail profile with your email account details, configuring options like making the profile public and default, testing the mail configuration by sending a test email, and enabling Powershell to allow executing mail queries.

Uploaded by

Zakaria Pharm
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Configuration de Send Mail Sqlserver

This document outlines 15 steps to configure database mail in SQL Server to allow sending emails from the database. The steps include setting up a new mail profile with your email account details, configuring options like making the profile public and default, testing the mail configuration by sending a test email, and enabling Powershell to allow executing mail queries.

Uploaded by

Zakaria Pharm
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 12

Step 1:

- connect to your server and expand the Management node of the tree and then right-click on "Database Mail"

« Configure la messagerie de base de données ».

Step 2 :
- En select
"Configure
Database
Mail' and
you will
get the
following
welcome
screen
and click
"Next"
Step 3 :
- Select "Set up Database Mail by performing the following tasks" and click "Next". « Configure ka lessadere de
base de données en effectuant les taches suivantes »

Step 4 :
In the « create new profile » page, click on « ADD » to create a new profile.
Step 5 :
- The following screen will appear.  Fill out the details for your mail account that will be used to send out emails
from SQL Server.  When you are done click "OK".

Step 6 :
- On the next screen you
will see the name of the
profile that you just set up.  Click on the checkbox to allow this to be a Public profile and also select "Yes" for the
default profile and then click "Next".

step 7 :
- The following screen has some additional parameters that can be set to control how mail is sent. 

You can make changes or leave the defaults.  When you are done click "Next".
Step 8 :
- A summary screen will appear that shows you all of the options that were selected. 

If everything is correct click "Finish" or click "Back" to go back and make changes.

Step 9 :
- When you click "'Finish" the
next screen will appear that shows you the status of installing Database Mail.

When this has finished just click "Close" to close this screen
Step 10 :
- To test Database Mail, right-click on Database Mail and select "Send Test E-Mail"

Step 11:
- Fill in:" email address and change the body of the email if you want and then click "Send Test E-Mail".
Step 12 :
- Check the history of the database to see if the mail sends successfully or not. by clicking right on « database
mail », then on « view database mail log »

Step 13 :
Step 14 :
Activate the CMD Powershell in the SQL server, to allow the execute the query of send mail.

First access to SQL Server Management Studio (SSMS), right-click on the database server instead, then click on
proprieties.
Step 15:
- Change the status of the « XPCmdShellEnabled » to « true » then click on OK.

You might also like