Score:0

Attachment with -A option in mailx not working in Ubuntu 20.04,

tv flag

Attachment with -A option in mailx not working in Ubuntu 20.04 Body also coming as attachment when we use -A option

1)Example Code :-

echo -e "Hi Team\n\nPlease find attached report.\n\nRegards\nMuthu" |mailx -a "From:<from_email>" -s "subject" mail_to --attach="test.txt"

echo -e "Hi Team\n\nPlease find attached report.\n\nRegards\nMuthu" |mailx -a "From:<from_email>" -s "subject" mail_to -A "test.txt"

  1. No error code since didn't get any error

  2. "echo -e "Hi Team\n\nPlease find attached VM list.\n\nRegards\nMuthu" also coming as separate attachment in email with test.txt instead of email's body.

  3. Need to send email with attachment using mailx

in flag
Apologies, but there simply isn't enough here to work with. If you would like an answer you can actually use, please [edit] your question to include: (0) an example of your code (1) any error message you're seeing (2) an example of the output (3) what you actually want. Without this, the bulk of the effort is put on the person answering the question rather than the person seeking an answer, which just isn't fair when approaching a community-led project such as AskUbuntu ...
Muthu avatar
tv flag
@matigo My apologies !! It's done !
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.