LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sending email from the command line question? (https://www.linuxquestions.org/questions/linux-newbie-8/sending-email-from-the-command-line-question-4175589936/)

Ac_x0 09-22-2016 06:56 AM

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?

TB0ne 09-22-2016 07:41 AM

Quote:

Originally Posted by Ac_x0 (Post 5608619)
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.

Ac_x0 09-22-2016 12:59 PM

Quote:

Originally Posted by TB0ne (Post 5608648)
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

TB0ne 09-22-2016 01:30 PM

Quote:

Originally Posted by Ac_x0 (Post 5608774)
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.


All times are GMT -5. The time now is 06:16 AM.