sql - msdb.dbo.sp_send_dbmail Invalid Recipients get stripped out automatically -


looking @ documentation on http://technet.microsoft.com/en-us/library/ms190307.aspx (and more googling) cannot find information following behaviour:

i'm trying send database email on microsoft sql 2008r2 using following command

exec msdb.dbo.sp_send_dbmail @profile_name = 'profilename', @recipients='valid@gmail.com; unvalid_gmailcom', @body = 'testing', @body_format = 'html', @subject = 'testing'; 

the obvious problem unvalid_gmailcom isn't valid e-mail address. expected sort of error or warning maybe, sql strips out invalid address , sends mail remaining (if any) recipient(s).

is there way find out when sql or way sanitize code cannot happen?

you won't error, results (failure , success) stored in msdb. following views sysmail_allitems, sysmail_sentitems, sysmail_unsentitems, sysmail_faileditems available in msdb purposes.

more here:

http://technet.microsoft.com/en-us/library/ms191278.aspx


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

java - What is the difference between String. and String.this. ? -