LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-27-2005, 05:14 AM   #1
buskmann
LQ Newbie
 
Registered: Mar 2005
Location: Norway
Distribution: FC5
Posts: 27

Rep: Reputation: 15
How to send mail from command line


I issue $ mail -s "This is my subject" user@domain.com
Then I start typing what I think is the body.

How do quit typing and actually send the mail to the recipient?
 
Old 05-27-2005, 07:33 AM   #2
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X
Posts: 488

Rep: Reputation: 31
Maybe pressing [CTRL-D] will help.
 
Old 05-27-2005, 08:08 AM   #3
buskmann
LQ Newbie
 
Registered: Mar 2005
Location: Norway
Distribution: FC5
Posts: 27

Original Poster
Rep: Reputation: 15
Sure did.

How intuitive.
 
Old 05-27-2005, 01:52 PM   #4
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X
Posts: 488

Rep: Reputation: 31
[POST DELETED]

Last edited by JunctaJuvant; 05-27-2005 at 04:47 PM.
 
Old 05-27-2005, 04:24 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
JunctaJuvant, I made a mistake and your post was not moved to the new thread http://www.linuxquestions.org/questi...hreadid=327801
 
Old 07-22-2006, 07:28 AM   #6
sajiviswanath
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
how to send email on linux command line
 
Old 07-23-2006, 02:35 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
sajiviswanath, you have an answer in the first post of the thread. Of course, you need to have 'mail' program installed.
 
Old 07-23-2006, 10:18 PM   #8
hobbestec
LQ Newbie
 
Registered: Nov 2003
Location: Boston, MA
Distribution: Debian, Ubuntu, Fedora
Posts: 27

Rep: Reputation: 15
a period "." on a line all by itself after the body of the message should work.
 
  


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 HTML mail via command line interface xlash Linux - General 2 11-02-2005 01:02 PM
can i send mail from command line? iflorea Linux - Software 6 11-02-2005 07:08 AM
Command Line Send Mail nutthick Linux - Newbie 10 01-24-2005 07:52 PM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 06:06 PM
internet line down, cant send mail internally. dashburner Linux - Networking 1 11-12-2003 12:39 PM


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

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