Due to I am working at a hosting company, coping with Linux and Windows server issues are my daily routine job. I have to keep update myself, learning new stuff. Even my blog share more about Linux stuff, but I will share anything relate to Windows if I ever learn about it.
So, I am going to discuss about configuring MSSQL 2005 database mail in this topic. It is actually a function in MSSQL 2005 configured for sending email. However, MSSQL database mail function will connect to the configured mail relay service for relaying mail.
Configuration Steps of Database Mail (Log in via Windows Authentication mode)

Yeah… Pictures tell thousand of words.

Choose Set up Database Mail in Database Mail Configuration Wizard

A message saying Database Mail feature is not available will be prompted. Click Yes to enable it.

Create a new Database Mail profile

At the next wizard page, entering the SMTP relay server information. You could use IIS SMTP, mail server, etc.

Managing Profile Security

The profile can be either Public or Private. Assiging to Public means every users can use this profile. A private profile is accessible by specific users or roles only.
Configuring System parameters - Place for configuring the Database Mail parameters

Click Next to complete the configuring.
After finish, open a Query screen and entering below sql command to test the Database Mail function.
EXEC msdb.dbo.sp_send_dbmail @profile_name = ‘DBMailProfile’, @recipients = ‘recipient@domain.com’, @body = ‘This is a sample email’, @subject = ‘Subject: Database Mail’
Can always use View Database Mail Log function to check the sending process.

Note : Above SQL query is executable by sa user only. How if a specific users that need to execute this query? To allow specific user uses above created profile for sending email, this user must be a user in msdb database and a member of the DatabaseMailUserRole database role in msdb database. Once this permission has been granted, execute below sql query
EXEC msdb.dbo.sp_addrolemember @rolename = ‘DatabaseMailUserRole’
,@membername = ‘<user or role name>’;
GO
Done. This particular user can log in SQL Server Management Studio to execute MSSQL 2005 Database Mail sql command.
Enjoy reading.