in reply to Re^2: STDERR Restore after redirect
in thread STDERR Restore after redirect

Anything anywhere in the SendMail package could have done it. I think you need to take a different approach to this.