LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2007, 06:59 AM   #1
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Rep: Reputation: 30
Command line pop3/gmail email sender


Hi there, a very quick question:

I want to be able to run a command at the end of a long emerge (installer in gentoo) to email my at my office to tell me its done so i can ssh into it and then shutdown if necessary. I was wondering what program would be best. I have read several posts which seem to recommend mailx but they seem to be for internal mailing or mailing from your own server(?) I am new to the mailing world and have got by by simply adding my gmail and pop3 into thunderbird. I was wondering if someone could steer me into the right directiong in sending mail from commandline through a pop3 account or gmail. i've also heard sendmail/mutt maybe able to do it but I want to hear what people's experience and opinions are first.

Thanking you in advance
 
Old 03-29-2007, 06:00 PM   #2
mortovski
LQ Newbie
 
Registered: Mar 2004
Posts: 6
Blog Entries: 1

Rep: Reputation: 0
Hope I've got the right end of your question here.

I'd use sendmail, it usually needs to be set up and configured but it's pretty standard and it's not as insane as some people make it out to be!

Then put a line like this at the end of your commands:
Code:
mail -s Install Finished your@email.address < /dev/null
This will very simply send you a blank email that has the subject line 'Install Finished'.

There's probably a better way to use the mail line - but I haven't been able to find one in the mail manual...

Hope this helps, or at least gets discussion going!
 
Old 03-02-2008, 01:08 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
Quote:
Originally Posted by Maverick1182 View Post
Hi there, a very quick question:

I want to be able to run a command at the end of a long emerge (installer in gentoo) to email my at my office to tell me its done so i can ssh into it and then shutdown if necessary. I was wondering what program would be best. I have read several posts which seem to recommend mailx but they seem to be for internal mailing or mailing from your own server(?) I am new to the mailing world and have got by by simply adding my gmail and pop3 into thunderbird. I was wondering if someone could steer me into the right directiong in sending mail from commandline through a pop3 account or gmail. i've also heard sendmail/mutt maybe able to do it but I want to hear what people's experience and opinions are first.

Thanking you in advance
Have you managed with the explanatoins that was given, and you can run it by now ?
(just little question)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
command-line email sending ixion Linux - Software 9 08-01-2008 06:46 AM
GMail command line mail client introuble Linux - Software 5 11-03-2006 07:29 AM
Pop3 Command stream end of file while reading line sesimonsen Linux - Networking 0 05-13-2005 12:29 PM
Command line tool like fetchyahoo to fetch gmail? SharpyWarpy Linux - Software 2 09-07-2004 04:39 PM
command-line email client ixion Linux - General 4 02-11-2003 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration