On 22/11/2016 13:01, Andrew Lowe wrote: > Hi all, > First up, I'm not an email admin or anything as snazzy so I'm not > fully buzzword compliant. > > What I'm after is a tiny app that will, when called from the prompt, > send an email to any address. I have several apps that take a long time > to run, think Finite Elemental Analysis and Computational Fluid > Dynamics, and I want something that can send me an email upon success or > failure. I can wrap everything up in a script, it's the actual email > sending that I'm looking for advice on. > > Off the top of my head I'm looking for something that is small, > think the sort of thing that someone would write in Python to show off > to their work colleagues and is 79 lines in size. This is going to be > running on a Gentoo machine so Python is there and if I have to add > another small Python package that's fine. > > In turn the recipient address, the mail server, which is my ISP's, > etc along with a text file for the message can be either command line > variables or in a simple config file which is written on the fly by the > original script that ran everything. > > Does anyone know of such a little beasty or is this the reason I've > been looking for to learn Python? > > Thoughts greatly appreciated, > > Andrew >
ssmtp config file is something like 6 lines :-) and none of that sendmail m4 crap either -- Alan McKinnon alan.mckin...@gmail.com