El día Saturday, November 01, 2014 a las 05:06:42PM +0100, John Niendorf 
escribió:

> Hello Fellow Mutters,
> 
> I often have to send the same message to the same group of 
> people.  Specifically I send a note that a website has been updated.
> I have been doing this in Mutt using an alias that contains all of the 
> email address the message is sent to and then hitting a key sequence to 
> call a script that uses xclip and xdotool to paste the contents of a file 
> into the message body.
> 
> What I am wondering is there a way I can save the message recipients, 
> message subject and message body as a template in mutt and then run a 
> command to send that message whenever I wish?  The idea is that I'd no 
> longer have to type a subject or paste in the message body.

Hello,

What about preparing the body in some file 'body' and sending it from a
shell script like

#!/bin/sh

mutt -s 'My famous subject' -a my-attachment -- my-famous-alias < body

        matthias
-- 
Matthias Apitz               |  /"\   ASCII Ribbon Campaign:
E-mail: g...@unixarea.de     |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X    - No proprietary attachments
phone: +49-170-4527211       |  / \   - Respect for open standards
                             | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign

Reply via email to