TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Post an article
Translate this page
Powered by
Microsoft® Translator
Wikis - Page Details
First published by
Nair SS
When:
14 Jul 2012 2:08 PM
Last revision by
Nair SS
When:
14 Jul 2012 2:23 PM
Revisions:
2
Comments:
0
Options
Subscribe to Article (RSS)
Share this
Can You Improve This Article?
Positively!
Click Sign In to add the tip, solution, correction or comment that will help other users.
Report inappropriate content using
these instructions
.
Wiki
>
TechNet Articles
>
Database Mail Configuration in SQL Server 2008
Database Mail Configuration in SQL Server 2008
Article
History
Database Mail Configuration in SQL Server 2008
Remember SQL Mail?
SQL Mail was introduced in SQL Server 2000. Those who worked on SQL Mail know how much they hate it. They have to do Outlook configurations, third party Simple Mail Transfer Protocol mapping, Messaging Application Programming Interface profiles (this mapping must also be installed on production server) etc... etc..., lots of stuff must be ready for sending and receiving mails. I also got a chance to work with SQL Mail, it looks simple, but a lot of this kind of configuration must be there to get it working. One of the main disadvantages was when SQL Mail goes down; SQL Server also goes down because SQL Mail runs in-process to the SQL Server service. And also, SQL Mail is less secure. Even Microsoft has fully explained this in the
article
on Common SQL Mail problems.
Getting Started with Database Mail
Database Mail was introduced in SQL Server 2005 and we can say it is a complete replacement of SQL Mail of SQL Server earlier version. Database Mail is designed for reliability, scalability, security, and supportability.
The following is a list of some of the advantages of using Database Mail.
It's easy to configure, fast and reliable.
Highly Secure.
Auditing and Maintaining Logs of every mail.
Can be configured to multiple SMTP servers.
Can send HTML messages, attachments (can filter out attachments depend on extension).
No worry of SQL Server going down when Database Mail goes down because Database Mail runs outside SQL Server in a separate process.
Database Mail does not need any configuration like SQL Mail must have.
Fully supported on 64-bit installations of SQL Server.
By default Database Mail is not active. By using the Database Mail Configuration Wizard or the sp_configure stored procedure or by using the Surface Area Configuration facet of Policy-Based Management we can activate or configure it. Database Mail Configuration, security information, creating profiles and account, messaging components, executables, Logging and auditing information's will be saved in the MSDN database.
How to configure Database Mail
Open and login into your server with SQL Server Management Studio. Now press F8 or click on Object Explorer. Under Management node list you will see Database Mail node.
2.
Now right-click on Configure Database Mail.
3.
A welcome wizard will pop-up for configuration. You can read the information provided and click on Next. On the second window choose the first option from radio button list for configuration task.
4.
Next comes the New Profiles creation window, here we can configure multiple SMTP configurations. If any of the account fails while sending mails, the profile uses the next account in the priority list. Add the profile name, description (optional) and click Add.
5.
A New Database Mail Account window will be opened. Am using here as the server name as smtp.gmail.com and port number 587. You can configure other SMTP account also. Select Basic authentication and provide Gmail user name and password. Click OK and the profile account got created. We can even remove the profiles from the list available. Click on Next.
6.
Manage Profile Security window where we can make profile as Public or Private. A Public profile can be accessed by all users of any mail-host database. A Private profile can only be accessed by a specific of any mail-host database from the User name dropdown list provided. We can even make default profiles. This part is optional and we are moving to next window.
7. Configure System parameters, this is also optional.
8. Click Next and Finish Completing the Configuration Wizard.
And the configuration is successful and now ready to test it.
9.
Right-click on Database Mail then Send Test E-Mail from Object Explorer.
10.
The Send Test E-Mail window will be opened. Enter email in "To" box, subject and hit Send.
11.
We can even check the Database Mail Logs from Object Explorer.
12.
Now open your mail inbox and check the mail received.
That's it; the Database Mail has been successfully configured.
Conclusion
This article explained step by step, how to configure Database Mail in SQL Server 2008. Hope you all enjoyed the article. Post your comments and rate the article. For any queries our forum is available.
Thank you, have a nice day!
database mail
,
SQL Server 2008
[Edit tags]
Leave a Comment
Please add 6 and 2 and type the answer here:
Post
Wiki - Revision Comment List(Revision Comment)
Wikis - Comment List