try option -I

Code:
      #!/usr/local/bin/bash
      mail -I -s 'test mail' toto@toto.com <<EOF
      ~R toto1@toto.com
      content of the message
      EOF

question:

does tilde escape ~R exist?????

i didn't find it, and my mail / mailx doesn't recognize it ?????

i would appreciate your comments