How to send mails with attachments using mailx command
We can use the following syntax to send mails with attachments.
#echo "MESSAGE" | mailx -s "SUBJECT" -a FILENAME RECEIVER
Where MESSAGE need to be replaced with the email body, SUBJECT with the email subject, FILENAME with the name of the file to be attached and RECEIVER with the recipient email id.
That's all…