diff --git a/test-snippets/email-dns-bug.rsc b/test-snippets/email-dns-bug.rsc index 2fdff2f..cca7878 100644 --- a/test-snippets/email-dns-bug.rsc +++ b/test-snippets/email-dns-bug.rsc @@ -6,8 +6,12 @@ # 5. On ideal conditions, we'd get "A friendly message" in the log # 6. Due to bug, we get nothing we email sending fails upon DNS failure. -:do { - /tool e-mail send to=kpothi@gmail.com body="Body Message" subject="Sample subject" -} on-error={ :log error "A friendly message" } +# :do { + # /tool e-mail send to=kpothi@gmail.com body="Body Message" subject="Sample subject" +# } on-error={ :log error "A friendly message" } -:log warn "This message should not be shown" +:onerror errMsg in={ + /tool e-mail send to=name@example.com body="msg" subject="test" +} do={ :error "Email sending failure: $errMsg" } + +:log warn "This message should not be shown, if email sending fails upon DNS failure."