LinuxQuestions.org
Review your favorite Linux distribution.
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 09-22-2016, 06:56 AM   #1
Ac_x0
LQ Newbie
 
Registered: Sep 2016
Posts: 12

Rep: Reputation: Disabled
Sending email from the command line question?


First good morning!

I have little question about sending email from the terminal because i am too lazy to open my email it's easier for me to do it from the terminal, but how ever i have little issue with it when i tape this:

#Mail -s "Hello is it me you looking for?" recipient@example.com

I get this:
Cannot parse address `Hello is it me you looking for?' (while expanding `Hello is it me you looking for?'): Malformed email address


Any suggestions?
 
Old 09-22-2016, 07:41 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by Ac_x0 View Post
First good morning!
I have little question about sending email from the terminal because i am too lazy to open my email it's easier for me to do it from the terminal, but how ever i have little issue with it when i tape this:

#Mail -s "Hello is it me you looking for?" recipient@example.com

I get this: Cannot parse address `Hello is it me you looking for?' (while expanding `Hello is it me you looking for?'): Malformed email address
Any suggestions?
Yes; read the man page on the mail command.

You're not actually putting a message into things to send...just a subject header, first off. And I cannot duplicate this on CentOS, Ubuntu, or openSUSE. All that exact command above does is wait for me to type a message. When I do, and press CTRL-D, it sends an email just fine. You don't provide any details about the version/distro of Linux you're using, or the mail (postfix? Sendmail? mailx?) system, nor if this has ever worked or is it a new problem? Read the "Question Guidelines" link in my posting signature.

Type in "which mail", and see what it points to.
 
Old 09-22-2016, 12:59 PM   #3
Ac_x0
LQ Newbie
 
Registered: Sep 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Yes; read the man page on the mail command.

You're not actually putting a message into things to send...just a subject header, first off. And I cannot duplicate this on CentOS, Ubuntu, or openSUSE. All that exact command above does is wait for me to type a message. When I do, and press CTRL-D, it sends an email just fine. You don't provide any details about the version/distro of Linux you're using, or the mail (postfix? Sendmail? mailx?) system, nor if this has ever worked or is it a new problem? Read the "Question Guidelines" link in my posting signature.

Type in "which mail", and see what it points to.
Sorry, i use Ubuntu distro aka mailx and hmmm i have to da research on this i have go deep into world wide web.LOL Email it's coming but its going straight up into the Spam section
 
Old 09-22-2016, 01:30 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by Ac_x0 View Post
Sorry, i use Ubuntu distro aka mailx and hmmm i have to da research on this i have go deep into world wide web.LOL
Read the LQ Rules..don't use text-speak. Also, saying "ubuntu" tells us NOTHING...what VERSION of Ubuntu??

And "deep into world wide web"??? Try typing in "man mailx" and READ THE SCREEN.
Quote:
Email it's coming but its going straight up into the Spam section
Then there's no problem with mail, but your spam filter on your email client...which you tell us nothing about.
 
  


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
[SOLVED] Sending email from command line through authenticated SMTP server xj25vm Linux - Server 7 12-11-2008 04:14 PM
command-line email sending ixion Linux - Software 9 08-01-2008 06:46 AM
LXer: A utility for sending complex email messages from the command line LXer Syndicated Linux News 0 06-06-2008 09:30 AM
command-line for sending email with attachment? enemorales Linux - Software 3 10-06-2004 08:04 AM
Sending Email's from command line jlaruffa Linux - Newbie 0 06-04-2003 03:31 PM

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

All times are GMT -5. The time now is 08:45 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