LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-09-2004, 03:30 PM   #1
rutman
LQ Newbie
 
Registered: Jun 2004
Location: Kentucky
Distribution: Redhat 7.2
Posts: 9

Rep: Reputation: 0
trying to send internet email from a command line...is it possible


I am trying to send email to the outside world from the command line. Is this even possible or am I wasting my time?
 
Old 06-09-2004, 03:58 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
You can use pine, the email client for the command line. Just issue "pine" in the command line.
 
Old 06-10-2004, 12:37 AM   #3
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("lenny", "squeeze"), Ubuntu ("karmic", "oneiric")
Posts: 214

Rep: Reputation: 24
Command line e-mail

I use pine usually. It is wonderful because you can secure shell (ssh)
to your mail machine from anywhere in the world and then run pine on it. It just works. Not all the GUI configuration nonsense that
can be a bear. Of course viewing attachments in pine is a pain in
the neck, but for text e-mail it's just great. Elm is another good
mail reader if for some reason pine isn't on your system.

One other thing to mention. If you are doing mail on your local machine, this assumes that all the mail daemons are running and configured properly. Otherwise, what you are really doing is secure shelling to another machine (the mailserver of your ISP) and running pine on that. This assumes that you have an ISP that gave you a linux shell account ... That isn't the default anymore, except still
at many universities.
 
Old 06-10-2004, 07:04 AM   #4
rutman
LQ Newbie
 
Registered: Jun 2004
Location: Kentucky
Distribution: Redhat 7.2
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the responses................but we do not have an "in house" mail machine. We have an off site company that handles our mail for us, and they do not allow ssh, telnet etc...into their server. I knew this going in but my boss already promised the powers to be that we could do this, so I guess I am screwed. All I am wanting to do is send a simple text message to an outside address. We do not need to have mail coming back in, because all we are emailing are confirmations of shipments to our customers.
 
Old 06-10-2004, 02:10 PM   #5
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("lenny", "squeeze"), Ubuntu ("karmic", "oneiric")
Posts: 214

Rep: Reputation: 24
What is outside mail server?

If they are selling a service, they ought to support their customers.
Is the outside company running an NT based server or is it Linux based. If Linux
based there is no reason on god's green earth you couldn't get a shell account.
Secure shell is SECURE. If Windows based ... ah well, I don't know.

Of course if your boss has his neck on the line now, just go to another ISP that
WILL give you a shell account. Talk him into trying it on an "experimental" basis.
It's $20 a month from Netcom or some such.

Good luck! Let us know how you do.
 
Old 06-10-2004, 02:11 PM   #6
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("lenny", "squeeze"), Ubuntu ("karmic", "oneiric")
Posts: 214

Rep: Reputation: 24
BTW -- YOu need puTTY on your Windows machine to give you a ssh to their mail server. (I assume you have a Windows machine in your office. If Linux, then ssh is native).
 
Old 06-10-2004, 02:55 PM   #7
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
You can use nail to send mail through SMTP (which your mail server probably uses). Just put the below in a shell script, make it executable, and run it.
Code:
#!/bin/sh
export SMTP=your.smtp.server.here
nail
Call it whatever you would like. You should probably read the nail man pages to get an idea how it works. This assumes you have the nail package installed.
 
Old 06-10-2004, 03:17 PM   #8
rutman
LQ Newbie
 
Registered: Jun 2004
Location: Kentucky
Distribution: Redhat 7.2
Posts: 9

Original Poster
Rep: Reputation: 0
thanks for all th input..I figured it out

pine john@email.com < file...................

I had to configure pine to match my mail server even though they "Bellsouth" said I couldn't.!
 
Old 06-26-2004, 02:19 AM   #9
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Rep: Reputation: 30
Can I make Pine send me emails without any type of confirmation??

I want to prorgam pine through crontab, so the machine will have to do it all
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
send email from command line djionel82 Programming 6 11-29-2005 12:12 AM
send email with mutt on command line naijaguy Linux - General 1 12-29-2004 06:33 PM
Sendmail question How to send email from command line anjaan Linux - General 1 07-08-2004 08:20 PM
How to send an mime/html-email by command line ? fluppi Linux - Networking 0 07-08-2004 09:26 AM
Can Pine send an email without from the command line without.. rutman Linux - Newbie 2 06-11-2004 04:34 PM


All times are GMT -5. The time now is 10:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration