Probably a bug: on-error doesn't get triggered for e-mail sending upon DNS failure

Yes, they definitely should. And I even asked them in that ticket, but they just replaced some error-catching examples in the docs with the new version.