1

I would like to use mutt for sending an email with two messages inside, it the folloring code it runs for ones content saved in a file named forescast

mutt -s "forecast temperature" mail.account < forecast.csv

it works, but if I want to send as a content in the same mail, two messages, another file.csv or .dat, and etc..., it doesn't work, any idea using mutt? is it possible? for example, the following code does't send the second content

mutt -s "forecast temperature" mail.account < forecast.csv increments.csv
Enric Agud Pique
  • 1,087
  • 7
  • 13
  • 30
  • See: [mutt command with multiple attachments in single mail unix](http://stackoverflow.com/q/17342450/3776858) – Cyrus Feb 13 '16 at 11:50

2 Answers2

1

mutt's -i option exists to specify a file to include into the body of a message. You can use it along with redirecting a second file.

mutt -s 'subject' -i file1.txt < file2.txt -- johndoe@example.com

Rany Albeg Wein
  • 3,304
  • 3
  • 16
  • 26
0

maybe this works?

cat forecast.csv increments.csv | mutt -s "forecast temperature" mail.account
devanand
  • 5,116
  • 2
  • 20
  • 19