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


message template question

2009-04-16 Thread Zhengquan Zhang
Dear mutt community,

I consulted this on mutt wiki to use template for outgoing messages,


One simple way is:

   1. start a new eMail,
   2. fill in the template data  body,
   3. in the compose-menu execute the function write-fcc and specify your 
template-folder. 

Then, to use a template, apply the resend-message function on the desired
template and continue to fill out the missing data  body. 


Now the problem is the subject of my message would be '04/16/2009 daily
report'. So in the future the date of the subject is changing. I was wondering
if I can make the subject have the correct date automatically.


Thank you for any suggestions,

-- 
Zhengquan