On Tuesday, November 22, 2016 07:01:36 PM 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
Try:
* mail-client/mailx
Available versions: 8.1.2.20050715-r6 ~8.1.2.20050715-r7
Homepage: http://www.debian.org/
Description: The /bin/mail program, which is used to send mail
via shell scripts
(Or any of the other ones in virtual/mailx)
--
Joost