Discussion Locked

Sending email with Attachment thru UNix

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Does any one know Unix command by which we can send a email with a file as attachment. I know

Cat | mailx ?s ? Test?

command will send mail but file contents as mail contents but I want to send file contents as Mail attachment.

Let me know if you know any

thanks

3 replies

by stillatit

uuencode myfilename nameontargetsystem | mail user@system

uudecode is used to restore it on the receiving end.

see man uuencode and man uudecode.

Good luck.

This discussion is closed to new replies.