Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Linux by (18.4k points)
How to send an email through this UNIX mailx command?

1 Answer

0 votes
by (36.8k points)

For example

$ echo "something" | mailx -s "subject" [email protected]

to send the attachment

$ uuencode file file | mailx -s "subject" [email protected]

Now, to send those attachment to AND, write the below message body

$ (echo "something\n" ; uuencode file file) | mailx -s "subject" [email protected]

To know about Linux join the Linux training

Related questions

0 votes
1 answer
0 votes
1 answer
asked Nov 29, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
0 votes
1 answer
asked Dec 20, 2020 in Linux by blackindya (18.4k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...