Solved

Sending email alerts/notifications emails from SQL Server 2005

Posted on 2010-09-16
6
647 Views
Last Modified: 2012-08-14
I am trying to set up email functionality of my SQL Server 2005. I set up alerts/notifications but seems like the email is not working. How do I set up email within SQL Server 2005 and also can I use SMTP Server? If yes, how and where do I set up that in SQL Server?

Thanks much.
0
Comment
Question by:awarraic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 250 total points
ID: 33691420
Since emails are not working, drop existing database mail profile and create it newly.
Steps to configure email

http://www.kodyaz.com/articles/sql2005-database-mail.aspx

>> and also can I use SMTP Server?

No need for SMTP starting from SQL Server 2005 and instead you can use built in database mail itself.
0
 
LVL 10

Assisted Solution

by:james-ct16
james-ct16 earned 125 total points
ID: 33691436
Howdy

This is the guidei have used in the past http://www.databasejournal.com/features/mssql/article.php/3626056/Database-Mail-in-SQL-Server-2005.htm

Hope that helps

James
0
 
LVL 19

Assisted Solution

by:Bhavesh Shah
Bhavesh Shah earned 125 total points
ID: 33691544

for configuring email in sql server

check out this link.

http://www.mssqltips.com/tip.asp?tip=1438
0
Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

 

Author Comment

by:awarraic
ID: 33691627
@rrjeqan17, I am getting the following error in "email log file viewer" after I set up database email.

"The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using account 2 (Date/time). Exception Message: Could not connect to mail server. (No connection could be made because the target machine actively refused it. [ip address])"

Any thoughts?
Also, can I get some help on SMTP Server because most of our application here use a remote server to send out emails, so that could be another option.

Thank you.
0
 
LVL 57

Assisted Solution

by:Raja Jegan R
Raja Jegan R earned 250 total points
ID: 33698893
>> Could not connect to mail server. (No connection could be made because the target machine actively refused it. [ip address]

Check whether you have Antivirus running in your machine and blocking ports associated for that..
Turn off anitvirus and Firewall once and test Database mail again to confirm that.

Are you able to get Test mail delivered successfully after configuring Database mail as mentioned in my link..
0
 
LVL 19

Expert Comment

by:Bhavesh Shah
ID: 33816673
Dear Author,

Pls. update on this.
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question