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:
Comments
Post a Comment