PDA

View Full Version : Send email from command line



vjwebb
June 18th, 2013, 07:24 PM
I need to be able to send an email message from a script running via a cron process. The email will just inform me of the script status. I already do this kind of thing on a server running an old version of Red Hat. It uses the mail command. However, apparently that isn't part of the default install of Ubuntu.

What do I need to install on ubuntu to accomplish this? This will be the only email that is generated on the computer.

Any help will be greatly appreciated.

V J

SeijiSensei
June 18th, 2013, 07:28 PM
Install the mailutils package which provides the "mail" command-line client.

vjwebb
June 18th, 2013, 08:58 PM
Install the mailutils package which provides the "mail" command-line client.

Thank you. I will do that.

sanderj
June 18th, 2013, 09:27 PM
Another option: mailsend. See https://code.google.com/p/mailsend/

vjwebb
June 18th, 2013, 09:40 PM
Another option: mailsend. See https://code.google.com/p/mailsend/

I think I like this one better and it says that it also works from windows. I have been looking for something on windows also.

Thank you.