Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
jimsurf
Starting Member
18 Posts |
Posted - 2009-10-09 : 17:38:47
|
| we are using db mail, and came across a problem because of a server move where the smtp server was no longer valid.EXEC MSDB.DBO.SP_SEND_DBMAIL @RECIPIENTS = 'xx@xx.com' , @SUBJECT = 'test' , @BODY = 'test body' , @BODY_FORMAT = 'HTML'The procedure did not throw an error and indicated that the mail had been queued. Then when looking at the sysmail_mailitems I noticed that the sent_status was set to 2, which indicates the email did not go out, and the sent_account_id was null.The smtp server was set to mail.xxx.comwhich did not resolve to a valid addressIs it possible to have this error write to the error log?Which application would the error be related to?How could you go about setting up a notification for this failure? |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|