choice of e-mail agent for batch processing

2009-07-21 Thread Matitiahu Allouche
The following is a quite naive question, and not strictly Linux-oriented, 
so delete this mail if you find it offending.

My problem is the following: 

I need to periodically (once a month) send an e-mail message to a number 
of recipients (about a hundred).
Each message is different and will be created as a separate file by an 
application which is not of concern. The message may be plain text, but 
HTML is preferred.
Each message will also have one file attachment (the same for all 
recipients).
I don't have access to a mail server except as a regular client.
I am ready to write whatever programs are needed to put the data in proper 
format, including the HTML sugar on the plain text.
I am ready to write scripts as needed.

I am looking for a mail agent, probably working from the command line, 
which can send all my messages as a batch, or that I can invoke repeatedly 
within a script to send each message in turn.
This mail agent should be available under Linux and Windows (I know, I 
know...), should be free (as in free beer) or cost just a few dollars, 
preferably open source.

Some googling has provided the following mail-agent names which seem to 
answer my requirements:
Alpine, Gnus, Mutt, Pine, VM (View Mail)

I will appreciate any advice, either positive or negative, concerning 
those programs, or others which answer my requirements.


Shalom (Regards),  Mati
   Bidi Architect
   Globalization Center Of Competency - Bidirectional Scripts
   IBM Israel
   Phone: +972 2 502Fax: +972 2 5870333Mobile: +972 52 
2554160
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: choice of e-mail agent for batch processing

2009-07-21 Thread Amos Shapira
2009/7/22 Matitiahu Allouche 
> I am looking for a mail agent, probably working from the command line, which 
> can send all my messages as a batch, or that I can invoke repeatedly within a 
> script to send each message in turn.
> This mail agent should be available under Linux and Windows (I know, I 
> know...), should be free (as in free beer) or cost just a few dollars, 
> preferably open source.

If you are already going to code things and need it to run both on
Linux and Windows then my personal choice would be Perl 5
(http://strawberryperl.com/ for Windows version) with Net::SMTP
(http://search.cpan.org/~gbarr/libnet-1.22/Net/SMTP.pm) for the SMTP
part.

Perl will also provide you with templating tools (e.g.
TemplateToolkit, start with
http://search.cpan.org/~abw/Template-Toolkit-2.22/lib/Template.pm and
http://template-toolkit.org/) to allow you to "mail merge" constant
text with dynamic data.

If you don't want to use perl Net::SMTP then mutt seems most
approperiate "shell-level" command to use for that, IMHO.

I'll bet the Python Phanatics among us will list the Python equivalent
of the above :).

Hope this helps, please let us know how it went.

Cheers,

--Amos

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: choice of e-mail agent for batch processing

2009-07-21 Thread Shahar Dag
Hello

are you looking for something like:
mail -s "subject line" to < ${MSG}
cat file | mail -s "subject line" to
replace: subject line, to, ${MSG}, file with your values
rape everything in a script

Shahar


- Original Message - 
  From: Matitiahu Allouche 
  To: linux-il@cs.huji.ac.il 
  Sent: Tuesday, July 21, 2009 11:25 PM
  Subject: choice of e-mail agent for batch processing



  The following is a quite naive question, and not strictly Linux-oriented, so 
delete this mail if you find it offending. 

  My problem is the following: 

  I need to periodically (once a month) send an e-mail message to a number of 
recipients (about a hundred). 
  Each message is different and will be created as a separate file by an 
application which is not of concern. The message may be plain text, but HTML is 
preferred. 
  Each message will also have one file attachment (the same for all 
recipients). 
  I don't have access to a mail server except as a regular client. 
  I am ready to write whatever programs are needed to put the data in proper 
format, including the HTML sugar on the plain text. 
  I am ready to write scripts as needed. 

  I am looking for a mail agent, probably working from the command line, which 
can send all my messages as a batch, or that I can invoke repeatedly within a 
script to send each message in turn. 
  This mail agent should be available under Linux and Windows (I know, I 
know...), should be free (as in free beer) or cost just a few dollars, 
preferably open source. 

  Some googling has provided the following mail-agent names which seem to 
answer my requirements: 
  Alpine, Gnus, Mutt, Pine, VM (View Mail) 

  I will appreciate any advice, either positive or negative, concerning those 
programs, or others which answer my requirements. 


  Shalom (Regards),  Mati
Bidi Architect
Globalization Center Of Competency - Bidirectional Scripts
IBM Israel
Phone: +972 2 502Fax: +972 2 5870333Mobile: +972 52 
2554160



--


  ___
  Linux-il mailing list
  Linux-il@cs.huji.ac.il
  http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: choice of e-mail agent for batch processing

2009-07-21 Thread Serge
On Tue, 2009-07-21 at 23:25 +0300, Matitiahu Allouche wrote:
> 
> The following is a quite naive question, and not strictly
> Linux-oriented, so delete this mail if you find it offending. 
> 
> My problem is the following: 
> 
> I need to periodically (once a month) send an e-mail message to a
> number of recipients (about a hundred). 
> Each message is different and will be created as a separate file by an
> application which is not of concern. The message may be plain text,
> but HTML is preferred. 
> Each message will also have one file attachment (the same for all
> recipients). 
> I don't have access to a mail server except as a regular client. 
> I am ready to write whatever programs are needed to put the data in
> proper format, including the HTML sugar on the plain text. 
> I am ready to write scripts as needed. 
> 
> I am looking for a mail agent, probably working from the command line,
> which can send all my messages as a batch, or that I can invoke
> repeatedly within a script to send each message in turn. 
> This mail agent should be available under Linux and Windows (I know, I
> know...), should be free (as in free beer) or cost just a few dollars,
> preferably open source. 
> 
> Some googling has provided the following mail-agent names which seem
> to answer my requirements: 
> Alpine, Gnus, Mutt, Pine, VM (View Mail) 
actually you don't need these clients, you can send mail directly by
sendmail or any other MTA on system or write a script by any script
language, for example by perl.

few links:
http://www.google.co.il/search?hl=en&q=how+to+send+mail+by
+perl&btnG=Google+Search&meta=&aq=f&oq=

http://search.cpan.org/search?m=all&q=sendmail

Thanks, Serge.


> 
> I will appreciate any advice, either positive or negative, concerning
> those programs, or others which answer my requirements. 
> 
> 
> Shalom (Regards),  Mati
>   Bidi Architect
>   Globalization Center Of Competency - Bidirectional Scripts
>   IBM Israel
>   Phone: +972 2 502Fax: +972 2 5870333Mobile: +972
> 52 2554160
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: choice of e-mail agent for batch processing

2009-07-21 Thread Matitiahu Allouche
I am not worried by the substitutions, I can do that in a number of ways. 
I  am worrried about how to interface with the mail agent, which of course 
raises the qestion of which program to choose as mail agent.

Shalom (Regards),  Mati
   Bidi Architect
   Globalization Center Of Competency - Bidirectional Scripts
   IBM Israel
   Phone: +972 2 502Fax: +972 2 5870333Mobile: +972 52 
2554160




"Shahar Dag"  
Sent by: linux-il-boun...@cs.huji.ac.il
22/07/2009 09:14
Please respond to
Shahar Dag 


To

cc

Subject
Re: choice of e-mail agent for batch processing






Hello
 
are you looking for something like:
mail -s "subject line" to < ${MSG}
cat file | mail -s "subject line" to
replace: subject line, to, ${MSG}, file with your values
rape everything in a script
 
Shahar
 
 
- Original Message - 
From: Matitiahu Allouche 
To: linux-il@cs.huji.ac.il 
Sent: Tuesday, July 21, 2009 11:25 PM
Subject: choice of e-mail agent for batch processing


The following is a quite naive question, and not strictly Linux-oriented, 
so delete this mail if you find it offending. 

My problem is the following: 

I need to periodically (once a month) send an e-mail message to a number 
of recipients (about a hundred). 
Each message is different and will be created as a separate file by an 
application which is not of concern. The message may be plain text, but 
HTML is preferred. 
Each message will also have one file attachment (the same for all 
recipients). 
I don't have access to a mail server except as a regular client. 
I am ready to write whatever programs are needed to put the data in proper 
format, including the HTML sugar on the plain text. 
I am ready to write scripts as needed. 

I am looking for a mail agent, probably working from the command line, 
which can send all my messages as a batch, or that I can invoke repeatedly 
within a script to send each message in turn. 
This mail agent should be available under Linux and Windows (I know, I 
know...), should be free (as in free beer) or cost just a few dollars, 
preferably open source. 

Some googling has provided the following mail-agent names which seem to 
answer my requirements: 
Alpine, Gnus, Mutt, Pine, VM (View Mail) 

I will appreciate any advice, either positive or negative, concerning 
those programs, or others which answer my requirements. 


Shalom (Regards),  Mati
  Bidi Architect
  Globalization Center Of Competency - Bidirectional Scripts
  IBM Israel
  Phone: +972 2 502Fax: +972 2 5870333Mobile: +972 52 
2554160

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il