![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending mail in the dead.letter file | mjdavies | UNIX for Dummies Questions & Answers | 4 | 04-22-2008 11:36 PM |
| How to use "mail" to attach a file with an email? | meili100 | UNIX for Dummies Questions & Answers | 2 | 02-23-2008 12:49 AM |
| How to attach a file & send mail thru script | Mar1006 | Shell Programming and Scripting | 9 | 10-12-2006 05:54 AM |
| spooled file getting distorted when sending through unix mail | chgopi | UNIX for Dummies Questions & Answers | 2 | 02-07-2006 12:26 PM |
| How to attach a file in mail? | firebirdonfire | UNIX for Dummies Questions & Answers | 1 | 03-29-2001 04:38 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need to attach a txt file while sending mail
Hi,
I need to attach a txt file while sending mail thru Unix. Please help me out in this.. -Charan. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
sending attachment had been answered many times,
could you please make use of the search facility: search the forum |
|
#3
|
|||
|
|||
|
I need to attach a txt file as well as embed some text in the mail body.
Thanks..
I need to attach a txt file as well as embed some text in the mail body. How to add the mail body(Some text) while attaching a file like this : uuencode abc.txt abc.txt | mailx -s "Attaching test" user@domain.com Charan. |
|
#4
|
|||
|
|||
|
Code:
uuencode abc.txt abc.txt | mailx -s "Attaching test" user@domain.com < your_file_containing_message |
|
#5
|
|||
|
|||
|
It Doesnt attach the txt file while embedding the mail body.
Madhan,
I tried this already.. uuencode abc.txt abc.txt | mailx -s "Attaching test" user@domain.com < your_file_containing_message This is sending out a mail with the body of the "your_file_containing_message" file.Doesnt attach the txt file. Charan. |
|
#6
|
|||
|
|||
|
I am very sure the above command would work as requested.
Could you please post the exact command what you had tried? That would be helpful to find out the problem. |
|
#7
|
|||
|
|||
|
I have used this..
uuencode datetime.txt datetime.txt | mailx -s "Attaching test" charan.p@igate.com < mail.txt I am receiving the mail with the body of the "mail.txt" file. I dont receive the attachment. Charan. |
|||
| Google The UNIX and Linux Forums |
| Tags |
| mailx, mailx attachment |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|