Article 4YXTG How to send attachments using mailx command

How to send attachments using mailx command

by
Indranil.Nag
from LinuxQuestions.org on (#4YXTG)
Hello Members,

I am new to linux and i am using RHEL (Linux 2.6.18-371.el5). I have a query: How to send attachments using mailx command?

i have tried:

i. mailx -s "subject" -a "attachment" "recipient" command.
ii. echo|mailx -s ""subject" -a "attachment" "recipient"
iii. uuencode filename | mailx -s "subject" "recipient"

none of these worked for me.
I have gone through different threads in this forum but could not find anything that fits my query.
Could you guys please help me out or maybe point me towards right discussion.
Thanks!

Regards,
Neellatest?d=yIl2AUoC8zA latest?i=ThwxXpnqSSc:c3YO0-rZ6EI:F7zBnMy latest?i=ThwxXpnqSSc:c3YO0-rZ6EI:V_sGLiP latest?d=qj6IDK7rITs latest?i=ThwxXpnqSSc:c3YO0-rZ6EI:gIN9vFwThwxXpnqSSc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments