Search code examples
linuxemailmutt

Multiple Headers for Mutt Command


I want to set two headers for mutt command. Here is what I am using.

mutt -s "Subject" -e "my_hdr From:abc@gmail.com Content-Type: text/html" xyz@gmail.com < body.html

But it doesn't work. How can I set multiple headers with -e option?


Solution

  • Use multiple -e options:

    mutt -s "Subject" \
      -e "my_hdr From: abc@gmail.com" \
      -e "my_hdr Content-Type: text/html" \
      xyz@gmail.com < body.html