PDA

View Full Version : Simple mail send using bash



hctopcu
November 22nd, 2008, 02:23 PM
I need a very lightweigt and simple script that will send reports as mail.
I have a mail server on another machine. I need the script use it. (Like using gmail smtp)
I googled and found nail but it turned out to be no more available in ubuntu repots.
I found others but they're all much more than I need for my dedicated mysql server.
I dont know what to use and how to configure.

raf_kig
November 22nd, 2008, 04:32 PM
Hi,

i would recommend using msmtp, its a pretty small smtp client and should suit all your needs.

Regards

raf

geirha
November 22nd, 2008, 05:06 PM
Have you looked at apt://mailx?

drubin
November 22nd, 2008, 05:08 PM
This is what I use a simple perl(Ie almost all servers will have it installed by default) script but has many options.
http://caspian.dotconf.net/menu/Software/SendEmail/

hctopcu
November 23rd, 2008, 01:03 AM
Thank you all.
Drubin I loved sendEmail!

drubin
November 23rd, 2008, 01:05 AM
Thank you all.
Drubin I loved sendEmail!

Pleasure it is the greatest simple script ever. I use that for CLI scripts because it means that my "dumb" servers do not need send mail installed.