Template Question

2014-11-01 Thread John Niendorf

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.

--
John


Re: Template Question

2014-11-01 Thread Matthias Apitz
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


Never mind - I should have searched first

2014-11-01 Thread John Niendorf

Sorry for the spam guys.
I found the answer to my questions:

Mutt also supports a ``batch'' mode to send prepared messages. Simply 
redirect input from the file you wish to send. For example,


mutt -s data set for run #2 profes...@bigschool.edu  ~/run2.dat

This command will send a message to ``profes...@bigschool.edu'' with a 
subject of ``data set for run #2''. In the body of the message will be the 
contents of the file ``~/run2.dat''.


--
John