On 20Apr2016 14:39, Peng Yu <[email protected]> wrote:
Hi, I use the following command to send email with mutt. But
sometimes, I want to inspect the email body constructed by mutt. Is
there a way to do so? Thanks.

echo "This is the message body" | mutt -s "subject of message" --
[email protected]

You could set $sendmail to be a script that just took a copy of the message and did not send it. Then look at the copy. You can also resent such a copy later by handing it directly to sendmail (or whatever your mutt is currently using), or by handing it to mutt again with the -H option.

Cheers,
Cameron Simpson <[email protected]>

Reply via email to