The email, which was reportedly mistakenly sent to staff at a hospital in New South Wales, has been criticised as "tone-deaf" by a trade union representing doctors.