LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-14-2004, 12:18 AM   #1
xlord
Member
 
Registered: Mar 2002
Posts: 75

Rep: Reputation: 15
mail


im using the mail command in slackware9.0 but for some reason its not sending anything to my email..
the syntax that im imputing is

mail -s "testing" -a test xlordt@hotmail.com

it just sits there.. does anyone know?
 
Old 01-14-2004, 01:40 AM   #2
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
Try this syntax:
Code:
echo "mail message" | mail -s "test" mymail@mydomain.com
or you can do it this way....
Code:
echo -e "first line of mail" >> mymail.txt
echo -e "second line of mail" >> mymail.txt
cat mymail.txt | mail -s "test" mymail@mydomain.com
This is the way I have found to work best... I think it just sits there because it is looking for the mail data, you would have to type it in followed by a "." which is the end message symbol. But I know for sure that the ways above work and that you do not need the "." and I hope this helps.
 
Old 01-14-2004, 07:17 AM   #3
willand
Member
 
Registered: Dec 2003
Location: Paris, France
Distribution: Debian, Knoppix & Mandrake
Posts: 52

Rep: Reputation: 15
but... before.. we must configure a file.. with our e-mail, ... and others informations as the server pop, imap, smtp...
no ?
 
Old 01-14-2004, 11:50 AM   #4
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
Quote:
before.. we must configure a file
I don't think so. If you have a smtp server running on the computer mail is being run from, it will just use that, and send from whatever the user account is.
 
Old 01-14-2004, 12:53 PM   #5
willand
Member
 
Registered: Dec 2003
Location: Paris, France
Distribution: Debian, Knoppix & Mandrake
Posts: 52

Rep: Reputation: 15
and if you don't have a smtp server on the computer ?
 
Old 01-14-2004, 02:30 PM   #6
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
I suggest reading the manual.... But from what I see in it, it is not possible.
 
Old 01-14-2004, 02:34 PM   #7
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
You need a mail transfer agent. I like Postfix.

 
  


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
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 11:18 AM
Configure & Connect a Linux mail server from a windows mail clients digihall7 Linux - Networking 4 10-23-2006 01:21 PM
sendmail error Fetching mail could not lock /var/spool/mail/username sukhdev50 Linux - Networking 0 05-04-2005 04:41 AM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 01:53 PM
parsing mail.log with perl and calculate mail traffic on domain base markus1982 Programming 1 03-18-2003 07:22 AM


All times are GMT -5. The time now is 02:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration