![]() |
|
|
|
|
|||||||
| 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 |
| Problem to send rtf inline body | srik_ux | UNIX for Dummies Questions & Answers | 7 | 05-30-2008 08:30 AM |
| Send mail attachments and have a mail body | shibajighosh | AIX | 1 | 04-18-2008 10:54 AM |
| 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 |
| 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 |
|
|||
|
Hi,
How to send send body along with attachment in a mail given below is code to send mail with attachemnt.its working fine but i need to send some message as body of the mail. uuencode /prod/applc/ds_data/mac/working/nullctry.csv "nullctry.csv" | mailx -s "List Of Attendance" RajendraP_Gora@abc.com.sg Thanks in advance Regards Rajesh |
| Forum Sponsor | ||
|
|
|
|||
|
Hi bargav,
this code works fine for message body mailx -s "List Of Attendance" RajendraP_Gora@abc.com.sg < /prod/applc/ds_data/mac/working/Message.txt and this is working fine fine for sending attachments uuencode /prod/applc/ds_data/mac/working/nullctry.csv "nullctry.csv" | mailx -s "Status Report" RajendraP_Gora@abc.com.sg the problem is while combining both i am not getting the expected result i need message with body as well as attachment for example this code is working fine till sending body but attachment is embeded with some crap text (cat /prod/applc/ds_data/mac/working/Message.txt; uuencode /prod/applc/ds_data/mac/working/nullctry.csv "nullctry.csv") | mailx -s "Status Report" RajendraP_Gora@abc.com.sg |
|
|||
|
Hi Madhan,
your code is fine if it is a single line message. but my case message is like a comeplete letter with many lines and spaces in between. For example my message looks like Hi, This is sample body of the message. Pls find the attached document. The job has run Successfully. Regards Rajendra Gora |
| Tags |
| mailx, mailx attachment |
| Thread Tools | |
| Display Modes | |
|
|