![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| 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 04:01 PM |
| Command line/Script to send E-mail with HTML body and binary attachment | G-Man | AIX | 3 | 04-18-2007 09:30 PM |
| AIX send mail with HTML message body and a binary attachment | G-Man | UNIX for Dummies Questions & Answers | 4 | 03-22-2007 02:15 PM |
| Sending attachment thru a mail | Rohini Vijay | UNIX for Dummies Questions & Answers | 1 | 05-12-2006 01:13 PM |
| Send Mail with attachment and a body | manojram | How do I send email? | 4 | 04-26-2004 11:53 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
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. |
![]() |
| Bookmarks |
| Tags |
| mailx, mailx attachment |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|