in reply to Re: Mailx question
in thread Using Mailx

Tilde escaping is disabled as soon as mailx gets input from a "non tty". So if you pipe the input into mailx, tilde escaping should be off.