Computing.Net > Forums > Unix > file attachments using mail in shells scripts on unix

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

file attachments using mail in shells scripts on unix

Reply to Message Icon

Name: kuth
Date: March 27, 2000 at 18:25:24 Pacific
Comment:

Hi
I want attach file using mail or any other commond on unix. This processes I want do with shell scripts.

Appriciate your help !!!



Sponsored Link
Ads by Google

Response Number 1
Name: mahmud
Date: June 28, 2000 at 15:31:31 Pacific
Reply:

Hey, here is a simple script, I hope it will help..
cat filename.txt|mail -s "subject"
user@mail.com
note: you can use it in cronjob.


0

Response Number 2
Name: Mike
Date: December 26, 2000 at 12:48:25 Pacific
Reply:

The cat command will push the text to the body of the message. But what do you do if you actually want to send a file as an attachment (a PDF file for example)?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: file attachments using mail in shells scripts on unix

Sending an attachment using mail www.computing.net/answers/unix/sending-an-attachment-using-mail/7527.html

Using hex-code in shell script www.computing.net/answers/unix/using-hexcode-in-shell-script/4227.html

loops in shell scripts!!! www.computing.net/answers/unix/loops-in-shell-scripts/5140.html