On 20Apr2016 14:39, Peng Yu <pengyu...@gmail.com> 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" --
a...@domain.com

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 <c...@zip.com.au>

Reply via email to