LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-04-2003, 03:31 PM   #1
jlaruffa
LQ Newbie
 
Registered: Jun 2003
Posts: 5

Rep: Reputation: 0
Sending Email's from command line


I need to send simple text emails from the linux shell or more specifically, from a database program running under linux (red hat)

I am able to do this with Pine. My setup includes an smtp server and when I enter Pine, I key in the email address and the rest of the commands and everything works ok.
My problem is that I need to automate this with a program and I am unable to data stack the commands, ^X to send, etc.
I tried the -I options and the ^X gets lost.

I also tried "mail".

When I type the command:
mail -s "test subject" jlaruffa@edirect.com < /home/jrl/me

... nothing happens. I guess I don't have smtp setup for "mail".
Is there an option in "mail" to specify the smtp server? Is it a setup in the sendmail config?

Thanks in advance....
 
  


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
Sending an attachment from a command line RonnyNussbaum Linux - Software 12 06-04-2007 11:47 AM
sending mail from command line won't work disorderly Linux - General 2 06-09-2005 11:29 AM
command-line for sending email with attachment? enemorales Linux - Software 3 10-06-2004 08:04 AM
sending msgs thru command line citrus Linux - Software 3 04-13-2004 02:39 AM

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

All times are GMT -5. The time now is 02:24 AM.

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