|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
From file to mail text
Hi,
Actually, what we are looking at is to have an attachment substituted for the information appearing within the body of the mail itself [ie, no attachment]. SO, is it possible in UNIX to copy all the contents of a file and paste them in the body of an email. We need automate this process. Regards, Pretaish |
|
#2
|
|||
|
|||
|
How about this?
cat filename | mail -s "your subject" person@address.com
|
|
#3
|
|||
|
|||
|
Quote:
why do you need to pipe it, when file contents can be redirected to mail mail -s "your subject" person@address.com < filename |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > From file to mail text |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|