In this blog post let’s see how to setup database mail with your gmail account.
Make sure Database Mail XPs is enabled for your instance. To check the status run the below command
EXEC SP_CONFIGURE 'show advanced options',1
RECONFIGURE
EXEC SP_CONFIGURE 'Database Mail XPs'
In my case it is disabled, let’s go ahead and enable it.
EXEC SP_CONFIGURE 'Database Mail XPs',1
RECONFIGURE
EXEC SP_CONFIGURE 'Database Mail XPs'
Now in object explorer pane
-Expand Management Node
-Right click Database Mail -> click ‘Configure Database Mail’ -> next
-In Select configuration Task, select ‘Set up Database Mail by performing the following task:’
-Enter the profile name and description.
-Now Add SMPT Account to create your database mail account. Few things which you should take care is
-Select whichever profile you need (Public/Private profiles available) and if required you can set it to default profile as well.
-Next window will show the system parameters. If necessary you can customize it, I will proceed with default.
-Click next and finish!
You have successfully configured database mail. Now let’s send a test mail to validate. Right click ‘Database Mail’ -> ‘Send Test E-Mail…’. Provide your E-mail ID and click ‘Send Test E-Mail’.
If you have provided a valid/correct email address you'll soon receive a test email.
Cheers,
Naveen
Make sure Database Mail XPs is enabled for your instance. To check the status run the below command
EXEC SP_CONFIGURE 'show advanced options',1
RECONFIGURE
EXEC SP_CONFIGURE 'Database Mail XPs'
In my case it is disabled, let’s go ahead and enable it.
EXEC SP_CONFIGURE 'Database Mail XPs',1
RECONFIGURE
EXEC SP_CONFIGURE 'Database Mail XPs'
Now in object explorer pane
-Expand Management Node
-Right click Database Mail -> click ‘Configure Database Mail’ -> next
-In Select configuration Task, select ‘Set up Database Mail by performing the following task:’
-Enter the profile name and description.
-Now Add SMPT Account to create your database mail account. Few things which you should take care is
- Provide a valid E-mail address, SMTP Server Name and Port.
- For SMTP authentication select ‘Basic authentication’. User name will be your email address and password will be your gmail account password.
Click here, to get more information about Google SMTP Server settings |
-Select whichever profile you need (Public/Private profiles available) and if required you can set it to default profile as well.
-Next window will show the system parameters. If necessary you can customize it, I will proceed with default.
-Click next and finish!
You have successfully configured database mail. Now let’s send a test mail to validate. Right click ‘Database Mail’ -> ‘Send Test E-Mail…’. Provide your E-mail ID and click ‘Send Test E-Mail’.
If you have provided a valid/correct email address you'll soon receive a test email.
Cheers,
Naveen
No comments:
Post a Comment
Please share your thoughts