LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Programs (not servers) to send mail? (https://www.linuxquestions.org/questions/linux-software-2/programs-not-servers-to-send-mail-830480/)

lucmove 09-05-2010 12:41 PM

Programs (not servers) to send mail?
 
Sometimes I want to leave a task running and get an email informing me that the task is finished and its final status/output. Sometimes I may want to get an alert. For example, if a certain task begins to run or if it's suddenly not running anymore when it should be.

That's on my desktop, and I don't want to run a full-fledged mail server (sendmail, qmail, postfix) just for that. I don't need that one more process running all the time. I want a static program that I can invoke from a script to dispatch one odd message out once in a while.

I have been using mailsend, which has the added benefit of supporting SSL (which I plan to make compulsory on my remote mail server, the gateway I'm using for these notification messages), but it has a bug that's been annoying me: it sends every message twice. It's not my script, I have tested it on the command line, I always get its messages twice.

Is there any other program I could use?

rikijpn 09-05-2010 01:06 PM

Hey. I used this program for a script too. At the Solaris machine at college, they don't have a running MTA (they have it in another server, so you have to use pop and stmp to send emails). And when I faced this situation I ended up using a program called "sendemail". It's written in perl and you only need the one file script, and that's it.
Don't even need to compile it...

take a look
http://caspian.dotconf.net/menu/Software/SendEmail/

lucmove 09-17-2010 06:35 PM

Sorry for taking so long to reply, I put this in the back burner, I am working on it now.

The software you recommended works pretty well. It's not perfect, but it works. I just can't make it work with TLS. First, it wanted additional Perl modules, Net::SSLeay and IO::Socket::SSL. I hate that in Perl. And installation took so long... Ugh! Now it says:

Quote:

ERROR => Received: 454 TLS not available: missing RSA private key (#4.3.0)
Whatever. I don't have that problem with mailsend... But at least it works without TLS.

Thank you!

harryhaller 09-17-2010 08:51 PM

Try msmtp
http://msmtp.sourceforge.net/

lucmove 09-18-2010 08:37 PM

Quote:

Originally Posted by harryhaller (Post 4101192)

I will! Downloading now, lots of documentation to read... Looks good though. Thanks.

Marking as SOLVED now...


All times are GMT -5. The time now is 08:06 PM.