Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

All Questions

Tagged with
1
vote
0answers
24 views

mail command sends empty body if file attached

Whenever I attach a file to mail like: $ mail -A attachment.pdf -s"Subject" id@domain.com Cc: This body never gets sent. And hit Ctrl+d to send the mail. The attachment and the subject get sent, but ...
1
vote
0answers
25 views

18.04.1-Ubuntu: Mail command unable to set mail body with attachment

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'...
0
votes
1answer
268 views

-c and -b options not working in mailx in ubuntu

I was trying to send a mail from the shell script using the command mailx -s "TEST MAIL" -c "user_name ..." user<message.txt but it generates an error as unrecognized option -c ,the same happens ...
3
votes
1answer
3k views

What should I configure to send mail on the command line?

I am working in the computer at home I want to send me an email and I tried: uuencode all.sh all.sh | mail mymail@gmail.com But the problem is that nothing arrive to my email, I just get the ...