Click here to Skip to main content
15,906,626 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am sending email through sql server.how to know the undelivered email in sql server?gmail will return undelivery email how to know the indelivery email in sql server
Posted

use msdb;
select sent_status from sysmail_allitems
you will get all the unsent email.see sent status in sysmail_allitems
 
Share this answer
 
v2
No, you are not really sending it via SQL server, even though it can be involved. In general case, you get no information on undelivered messages. Even if you do, the message at least should reach the really existing mail delivery agent which provides such service, which is not always the case. If you try to send some message nowhere, you won't get any response.

—SA
 
Share this answer
 
Comments
kalisiddayya 3-Jul-13 7:17am    
i got an answer for this we can see the mail status in sysmail_faileditems
Sergey Alexandrovich Kryukov 3-Jul-13 8:56am    
This is something related only to your system. You probably don't know what it does but assume that someone could know. Makes no sense at all.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900