mailx -a 'Content-Type: text/html' \
-s "Body" \
< index.html "foo@example.com"
I'm trying to send an email using a mailx
command line. The above command is working fine to send body as html file.
But along with it I also want to send an attachment.
Is it possible to send an attachment and body as a file together?
How to do it?