SQL Server database mail with

Posted on 2009-05-14
Last Modified: 2012-05-07
I am having a problem using SQL Server 2005 database mail from (w/

I can run the stored procedure that sends the mail in SQL Server and it works perfect.

However, when I run the same stored procedure in the email is not sent.

I obviously am missing something somewhere, any help????
Question by:yonbret
  • 3
  • 3

Expert Comment

ID: 24388030
Its actually the user who is running it from His permissions are not set accordingly.

Author Comment

ID: 24388047
I was guessing that.

Does it run using the Network Service account, like most processes?

What permissions need to be set?

Author Comment

ID: 24389262
I have discovered one other thing that is helpful to know.

If I run the stored proc using Windows Authentiacation, the email is sent without a problem.

If I run the stored proc using SQL Authentication, the email is not sent.
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.


Expert Comment

ID: 24391749
Could you please mark this question answered then if it did resolve your actual issue?

Author Comment

ID: 24396280
The question is not answered.

I need to know why SQL Authentication is not working, but Windows Authentication is working?

What account is used by SQL Authentication? What permissions need to be set for this account on the SMTP server?

Accepted Solution

bull_rider earned 500 total points
ID: 24397582
Please follow the below link:

Let me know if you still face this issue.

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now