![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bold characters in c shell | hemangi13 | Shell Programming and Scripting | 9 | 09-19-2008 12:57 PM |
| What does a bold filename in ls mean? | nunemaj | UNIX for Dummies Questions & Answers | 3 | 07-26-2008 01:00 PM |
| color,bold | charandevu | Shell Programming and Scripting | 0 | 04-07-2008 04:24 AM |
| How can i make this bold | moe2266 | UNIX for Dummies Questions & Answers | 10 | 08-06-2007 01:13 PM |
| Bold Text? | Atama | UNIX for Dummies Questions & Answers | 4 | 04-12-2002 10:40 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Bold characters in mail
I sh,
I have bold characters in a file and I want to mail file to an ID. $cat file Incorrect or invalid external email IDs in TO and CC list for email_rules: If I pass this file to mailx $ cat file | mailx -s "hi" abc@xyz.com What I get in mail is [1mIncorrect or invalid external email IDs in TO and CC list for email_rules:[0m I want to preserve these bold characeters. Can someone help? |
|
||||
|
Quote:
But <Ctrl V> is not understool by the unix file. Here mail command is taking input from a file. |
|
||||
|
As per RFC822 (updated by RFC2822 and RFC5322) mail messages are text-only. If you want to send any form of binary data (which includes text enriched with formatting sequences) you will have to rely on the MIME format laid out in RFC2045, RFC2046 and RFC2049. Declare your message "multipart/mixed" in the MIME header in this case and read the RFCs to understand the requirements.
Otherwise and if you want to adhere to classic RFC822-formatting use "uuencode" (man uuencode) your text and send it this way. The receiving party can use "uudecode" (man uudecode) to retrieve the original file from there. In fact this is what uuencode/uudecode have been designed for. I hope this helps. bakunin |
![]() |
| Bookmarks |
| Tags |
| unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|