Discussion Locked

Sending email with Attachment thru Unix

0 helpful
1 reply
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 anyone know about it

thanks

Raghav

1 reply

by babybax101

Raghav,
Just tested this response I received on another list server. I am now able to send attachment but have lost the message. I type my message in command rather than in separate entity. Hope this works for you.
echo $MESSAGE; cat $file|ux2dos|uuencode attchfilename|/usr/a/Mail -s SUBJECT
user1

This discussion is closed to new replies.