Configuration de Send Mail Sqlserver
Configuration de Send Mail Sqlserver
- connect to your server and expand the Management node of the tree and then right-click on "Database Mail"
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.