![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Attaching file and sending text in body using sendmail command!! | sparan_peddu | Shell Programming and Scripting | 1 | 03-24-2008 12:01 PM |
| Command line/Script to send E-mail with HTML body and binary attachment | G-Man | AIX | 3 | 04-18-2007 06:30 PM |
| AIX send mail with HTML message body and a binary attachment | G-Man | UNIX for Dummies Questions & Answers | 4 | 03-22-2007 10:15 AM |
| Sending attachment thru a mail | Rohini Vijay | UNIX for Dummies Questions & Answers | 1 | 05-12-2006 10:13 AM |
| 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 |
|
|||
|
sending mails with attachment and also some text in mail body
Hi,
Can some one help me with the syntax of the mailx that should send an attachment and also some text in the message body together. When I am using the following syntax it is not sending the attachment but only the message body. unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s "hi" xyz@hotmail.com < note.txt Where as REPORTFILE is the simple text file with .txt extn PCFILE is converting the .txt into .XLS note.txt contains the message that should be there in the message body If I try with the following syntax it is sending the attachment without any thing in the message body. unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s "hi" xyz@hotmail.com It is on SOLARIS Regards Narayana Gupta |
| Forum Sponsor | ||
|
|
|
|||
|
where is the decoded path name to be given to uuencode?
uuencode $PCFILE $PCFILE.decoded search the forum |
|
|||
|
When I use this command
unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s "hi" xyz@hotmail.com it is working fine, it is sending the attachment but no message in the message body. I want to put some text in the message body also along with the attachment. |
| Tags |
| mailx, mailx attachment |
| Thread Tools | |
| Display Modes | |
|
|