Mail could finally be sent in batch mode (or as a one-line command) with
elm user@node -ssubject < filename