Executed xp_sendmail, said mail sent, but nothing received.

Posted on 2007-10-16
Last Modified: 2008-03-06
I am currently trying to run a basic command to send an email to myself based on a trigger.  The code is as following:

DECLARE @SQL varchar(8000)
FROM NewHandsetContentMappingLog
WHERE TimeChanged >= (GETDATE() - .05)'
EXEC xp_sendmail '(my email address, ommitted for privacy reasons)'
    ,@query = @SQL

Problem is, SQL tells me that "Mail Sent" but I receive no mail.  I've tried right clicking on "Database Mail" under Management and sending a test message.  This works perfectly.  Anyone have any ideas as to why the test message would work but the xp won't send???
Question by:kzsigo
    LVL 16

    Accepted Solution

    does this user have xp_cmdshell rights and are they enable via configuration manager?

    Author Comment

    I actually got this one working you guys, I found sp_send_dbmail  as a great alternative with even more options in sending out the email.. Thx for your help

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
    Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
    Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
    Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

    755 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

    17 Experts available now in Live!

    Get 1:1 Help Now