Solved

Sending email alerts/notifications emails from SQL Server 2005

Posted on 2010-09-16
6
644 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 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