Unable to send CC mail using mail command
Hi All,
I am using Ubuntu 12.04 and I am not able to send mail as cc. Here is test file Code:
$cat test-mail Code:
$bash test-mail Thanks in advance for your kind help. |
can you try
Code:
mail -s "Test" -c cc@domain.tld to@domain.tld |
Thanks Celyr,
Quote:
|
It works to me, just tried, can you tell the output of
Code:
mail -V |
Thanks for the reply.
But it is not working for me. Code:
$ mail -V |
Because you have this mail http://mailutils.org/manual/mailutils.html#SEC69
try to use mailx with the same syntax |
Thanks Celyr,
It is working.:) |
debian stretch
$ mail -V mail (GNU Mailutils) 3.1.1 The options of "-c", or "-b" do not work. :( |
Quote:
That said, what happens when you use those options? "do not work" doesn't give us anything to help you with. I don't have that version, either. What does the man page say? man mail |
It's true, maybe I should start a new thread,
but 'gogleando' the problem I found this and take advantage of it. The problem is that I have several scripts made for 'wheezy' that work well, but in the migration to 'stretch' they give the following problem: Quote:
Thank you |
Quote:
Code:
mail [-BDdEFintv~] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-r from-addr] [-h hops] [-A account] [-S variable[=value]] to-addr . . . Code:
$ echo 'hola'|mail -s "probando" -c dos@telefonica.net uno@telefonica.net And yes, please start your own thread next time. |
All times are GMT -5. The time now is 04:48 AM. |