ensured correct mailx invocation