Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Sending Email not working
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

274 Posts

Posted - 05/08/2013 :  06:46:29  Show Profile  Reply with Quote

I am trying to send an email from database mail and I keep getting this in my mail log:

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 6 (2013-05-08T11:38:16). Exception Message: Could not connect to mail server. (No connection could be made because the target machine actively refused it xxx.xx.xx.xx:xx). )

Contacted support desk at my work and they gave me another server to use, but still get the same error. they said if you are trying to send as authenticated then turn that off as it's not needed but stil get error.

My test email is trying to send to my own work email account via the work email server.

My DB is on my local machine SQL Server 2005, and my local machine is on the work domain

What else could be the problem?



Edited by - Grifter on 05/08/2013 06:48:09

Constraint Violating Yak Guru

274 Posts

Posted - 05/08/2013 :  07:00:56  Show Profile  Reply with Quote
the problem been identified it is the McAfee anti-virus. if you have similar on your PC got to:

C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection\AccessProtectionlog.txt

and look for a log entry like this:

08/05/2013 11:38:16 Blocked by port blocking rule c:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Binn\DatabaseMail90.exe Anti-virus Standard Protection:Prevent mass mailing worms from sending mail xxx.xx.xx.xx:xx

Go to Top of Page

Posting Yak Master

212 Posts

Posted - 05/16/2013 :  02:20:46  Show Profile  Visit prett's Homepage  Reply with Quote
This error message usually occur because the url to the mail server is incorrect, or there's no connectivity at all.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000