![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to send an email with some body content and attachment | balireddy_77 | Shell Programming and Scripting | 2 | 08-20-2008 03:33 AM |
| script to send a file in email | dr46014 | Shell Programming and Scripting | 2 | 12-10-2007 04:38 AM |
| How to send file contents to email | teaspoon_ver2 | UNIX for Advanced & Expert Users | 4 | 01-11-2007 12:21 PM |
| How to send body in a mail | rajendragora | UNIX for Dummies Questions & Answers | 6 | 06-29-2006 11:51 PM |
| Send Mail with attachment and a body | manojram | How do I send email? | 4 | 04-26-2004 08:53 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
To send an email with the body content extracted from a file
Hi,
I have been trying to shoot an email with the email body to be obtained from a file. Can someone please help me with it.. I have been trying to use the MAILX commad for the same. mailx -s "test email" -r sender@test.com < file.txt but it sends the file as an attachment,while i need the contents of File.txt in the email Body.Appreciate any help...Thanks, |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
uuencode <filename> <filename> | mailx -s <something> |
|
|||
|
Try this
Try this code..Hope this works..
uuencode abc.zip 'basefile abc.zip' |mailx -s "some text " abc@abc.com or uuencode abc.zip `basefile abc.zip` |mail -s "some text " abc@abc.com |
|||
| Google The UNIX and Linux Forums |
| Tags |
| mailx, mailx attachment |
| Thread Tools | |
| Display Modes | |
|
|