Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Sending email alerts/notifications emails from SQL Server 2005

Posted on 2010-09-16
6
Medium Priority
?
650 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 1000 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 500 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 500 total points
ID: 33691544

for configuring email in sql server

check out this link.

http://www.mssqltips.com/tip.asp?tip=1438
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 1000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

609 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