Sponsored Content
Top Forums Shell Programming and Scripting Mail attachment dispaying in different format. Post 302677535 by RudiC on Thursday 26th of July 2012 08:59:47 AM
Old 07-26-2012
I guess Notepad is on Windows? Then you need to add a <CR> (0x0D) char before the newline char at the end of the line. Don't know if uuencode can do this for you.
This User Gave Thanks to RudiC For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mail attachment

This question has been asked many time before. I did search other questions. But was not able to work out. Really sorry for repeating the same question. I have mail and mailx and sendmail installed. It Tried this uuencode FILENAME.txt FILENAME.txt | mail mymail@yahoo.com the attachment... (3 Replies)
Discussion started by: sushrut
3 Replies

2. Shell Programming and Scripting

mail with attachment

Hi, I am facing an issue while sending a mail from unix with attachment.the issue is i am able to send a mail with attachment but...after receiving the mail if u see that the text is continous though it was line by line in original.. UUENCODE is the cmd i am using... plz help me in this... (1 Reply)
Discussion started by: param786
1 Replies

3. UNIX for Advanced & Expert Users

mailx commannd - Mail and Attachment in same mail

Hi , I am using mailx command for sending the mails. Rightnow I am sending the attachment (by using uuencode $filename) as a seperate mail.I wanna send the attachment also with the same mail. (6 Replies)
Discussion started by: sharif
6 Replies

4. Shell Programming and Scripting

need help in format an attachment

i have an o/p file called "all_rep_files.txt" . Below is the command i m using in my script to send the attachement. but the problem is when the attachment is opened in oulook the contents of the attachments is in a staright line. (uuencode all_rep_files.txt all_rep_files.txt) | mail -s "All... (1 Reply)
Discussion started by: ali560045
1 Replies

5. Shell Programming and Scripting

Mail attachment with unix mail

Hi Could someone help me with the details on how to send an attachment through mail in unix. I have an html file in my unix machine and I want this to be send to some mail id, plese help with the steps. Regards Ajay (2 Replies)
Discussion started by: ajaykumarboyana
2 Replies

6. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

7. Shell Programming and Scripting

Mail Attachment...

Hi All, I am new to unix. I have written the script to identify the delimiter count for my source file and the output I have to capture in another file and that file should sent to mail with attachment. I have tried to send the attachment with below script . But I am not able to do that. Any... (2 Replies)
Discussion started by: suresh_target
2 Replies

8. Shell Programming and Scripting

Getting mail with no Attachment

Hi All, my requirement send a mail with attachment a abc.txt file. below is the shell script. #!/usr/bin/ksh set -x #DIR=/appldata/download/mail MAILTO="krupa.behera@kk.com" SUBJECT="Report" BODY="Hi All," ATTACH=/projects/psoft/hrdw/pushreports/crons/temp_out... (5 Replies)
Discussion started by: krupasindhu18
5 Replies

9. Shell Programming and Scripting

Mail attachment

Hi, I want to send an attachment and content in a single mail using unix command can anyone pls help me? Thanks Naveen A (6 Replies)
Discussion started by: Pranaveen
6 Replies
uuencode(5)							File Formats Manual						       uuencode(5)

NAME
uuencode file format DESCRIPTION
The command generates files in a format that allows them to be successfully transferred by systems which strip the high bit from an 8-bit byte. decodes uuencoded files. The uuencode file format consists of three sections: header, body, and trailer. The header is a line is of the form: begin 644 "filename.ext" where "644" is a -format permissions byte for the file and "filename.ext" is the name of the encoded file. The body section is the encoded representation of the source file. Three bytes of input file data are encoded into four bytes of output data. The 24 input bits are divided up into four pieces of six bits each. The integer value 32 (the ASCII value for the space character) is added to each of these pieces to move them outside of the range of control characters. To avoid using the space character in the encoding, pieces with value zero are encoded using backquote (ASCII value 96) instead of zero. The resulting character is one of the this set (ASCII values 96,33-95): A line itself contains three segments: a length character (encoded using the "add a space" algorithm described above), the body of the line, typically (although not required to be) 60 output characters long, representing 45 input bytes, and (of course) a linefeed. The length character specifies the number of valid input bytes on the line (so, for a line which is 60 encoded bytes, the length value would be 45). Decoding programs should decode no further than the specified length on a single line. The trailer, which must exist, consists of a single backquote ("`", ASCII 96) character on a line by itself, directly followed by on a line by itself. is the canonical filename extension for uuencoded files. BUGS
uudecode does not read all permutations of the file format described in this man page. Ancient versions of uuencode used a space character (ASCII 32) in the encoding to represent zero. Many (arguably broken) mailers and trans- port agents stripped, rewrapped, or otherwise mangled this format, so the space was later changed to the backquote, ASCII 96. Decoders may attempt to read the older format if they wish, though it's unlikely to be encountered in practice at this point in time. The uuencode encoding method is highly ASCII-centric. In particular, the character set used doesn't work well on EBCDIC-based systems. (EBCDIC, generally used by IBM mainframes, is an old alternative character encoding; most computers use ASCII instead). Many variants of uuencode on various platforms generate different forms of line checksums, using to represent the checksum one or more encoded characters after the last counted character in a line. Because these formats are different and impossible to distinguish (with certainty), such characters should be ignored by decoding implementations. The uuencode encoding format has no provisions for segmented files. Writers of segmenting utilities should be careful to avoid using char- acter sequences that may naturally occur in the encoding (such as sequences of dashes ("---")) to divide sections. SEE ALSO
The MIME Base64 encoding (documented in RFC 2045) is a consistent, cross-platform-savvy message encoding which should be used in place of UUEncode wherever possible. The Unix-Hater's Handbook (IDG, 1994) identifies the folly of the older zero-encoded-as-space versions of uuencode. Apple Computer, Inc. May, 2001 uuencode(5)
All times are GMT -4. The time now is 02:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy