in reply to problem with interpolation in an email delivered by mailx
I think your diagnosis is correct. Check the logs for mailx, enable error reporting (-d -v) (update: but now I'm betting toolic has the answer!).