Mail command unable to set mail body with attachmentCan not use mail commandDoes the mail command require a...

Why does Taylor’s series “work”?

Does a windmilling propeller create more drag than a stopped propeller in an engine out scenario

Was Tyrion always a poor strategist?

Prints each letter of a string in different colors. C#

Why would company (decision makers) wait for someone to retire, rather than lay them off, when their role is no longer needed?

Would a "ring language" be possible?

Hotel booking: Why is Agoda much cheaper than booking.com?

How can sister protect herself from impulse purchases with a credit card?

Told to apply for UK visa before other visas, on UK-Spain-etc. visit

Driving a school bus in the USA

pwaS eht tirsf dna tasl setterl fo hace dorw

How do I balance a campaign consisting of four kobold PCs?

Will this series of events work to drown the Tarrasque?

Referring to a character in 3rd person when they have amnesia

Does the US Supreme Court vote using secret ballots?

Why are stats in Angband written as 18/** instead of 19, 20...?

Is there a language that let's you use a try block without a catch block?

Have the writers and actors of GOT responded to its poor reception?

How to say "that" as in "the cow that ate" in Japanese?

Why we learn compiler?

Can the Gate spell draw a creature larger that 20 feet in every dimension through the portal it creates?

Save my secrets!

Is it standard to have the first week's pay indefinitely withheld?

How can I monitor the bulk API limit?



Mail command unable to set mail body with attachment


Can not use mail commandDoes the mail command require a mail server?Email file attachment from command lineSet sender name in mail function`mail` command - How can I display the email list again?Delete Mail Based on Subject Pattern [mail-command]Perl script to format .xls file in LinuxHTML email from heirloom mailx on linuxhow to read postfix mail from command lineSending two text files with mail command - No -a support






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I am trying to use mail command to send 2 attachments. The issue which i am facing is unable to send attachment and mail body content. tried following command



echo "Hello World" | mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com 


cat README.txt | mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com 


mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com < README.txt


Whereas I send mail body alone then mail is received with body



mail -s 'Test Email' -aFrom:no-reply@test.com abcd@test.com  < README.txt


How to send both attachment and mail body?










share|improve this question









New contributor



Murugan M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    1















    I am trying to use mail command to send 2 attachments. The issue which i am facing is unable to send attachment and mail body content. tried following command



    echo "Hello World" | mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com 


    cat README.txt | mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com 


    mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com < README.txt


    Whereas I send mail body alone then mail is received with body



    mail -s 'Test Email' -aFrom:no-reply@test.com abcd@test.com  < README.txt


    How to send both attachment and mail body?










    share|improve this question









    New contributor



    Murugan M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      1












      1








      1








      I am trying to use mail command to send 2 attachments. The issue which i am facing is unable to send attachment and mail body content. tried following command



      echo "Hello World" | mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com 


      cat README.txt | mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com 


      mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com < README.txt


      Whereas I send mail body alone then mail is received with body



      mail -s 'Test Email' -aFrom:no-reply@test.com abcd@test.com  < README.txt


      How to send both attachment and mail body?










      share|improve this question









      New contributor



      Murugan M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I am trying to use mail command to send 2 attachments. The issue which i am facing is unable to send attachment and mail body content. tried following command



      echo "Hello World" | mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com 


      cat README.txt | mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com 


      mail -s 'Test Email' -A test.csv -aFrom:no-reply@test.com abcd@test.com < README.txt


      Whereas I send mail body alone then mail is received with body



      mail -s 'Test Email' -aFrom:no-reply@test.com abcd@test.com  < README.txt


      How to send both attachment and mail body?







      mail-command






      share|improve this question









      New contributor



      Murugan M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question









      New contributor



      Murugan M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question








      edited 3 mins ago









      αғsнιη

      18.1k113271




      18.1k113271






      New contributor



      Murugan M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 31 mins ago









      Murugan MMurugan M

      61




      61




      New contributor



      Murugan M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Murugan M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Murugan M is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f519409%2fmail-command-unable-to-set-mail-body-with-attachment%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Murugan M is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Murugan M is a new contributor. Be nice, and check out our Code of Conduct.













          Murugan M is a new contributor. Be nice, and check out our Code of Conduct.












          Murugan M is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f519409%2fmail-command-unable-to-set-mail-body-with-attachment%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...