09-26-2001
Never mind, I figured it out, If I uuencode the file to attach first and then cocatenate the 2 files ' cat mesgfile attachfile > combo
and use mailx -s "Test Subject"
mymail@yahoo.com < combo
this works,
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Could someone help me with 'Extract or save attachment of email using mailx'
Thanks,
Vijay ;) (1 Reply)
Discussion started by: kandati
1 Replies
2. Shell Programming and Scripting
I spent some time working this out, with a little help from various forums, and thought the community would like to know :
Here is how you can send an email from a single Unix command line :
/usr/bin/echo "Email text\nNew line\nAnother new line" >x | uuencode sourcefile.txt sourcefile.txt |... (3 Replies)
Discussion started by: haryadoon
3 Replies
3. Shell Programming and Scripting
hi,
i am trying to send mail with attachment to web-based email client like gmail.com using mailx. the problem is it is displayed in content rather than as attachment.
the code i am using is as follows,
uuencode test1.txt test1.txt | mailx -s "test only" aaaa@gmail.com
does anyone... (1 Reply)
Discussion started by: randomcz1
1 Replies
4. Shell Programming and Scripting
Hi All,
I am trying to send a mail with an attachment and message. Following command I am using.
(cat <messagefile> ; uuencode <attachmentfile> <attachmentfile>)|mailx -s"Subject" dave@email.com
In the received mail, message body is appearing fine. But attachment is not coming. Rather... (2 Replies)
Discussion started by: nihar.dutta
2 Replies
5. Shell Programming and Scripting
I don't want the attachment embedded in the mail. I would like a file attached.
When I do
mailx -s "Report, `date +'%D %r` " -r "Notifications" bob@bob.com < /usr/local/bin/myreport.log> /dev/null
It gets embedded in my email. I want a file attachment. How do I do that? (2 Replies)
Discussion started by: guessingo
2 Replies
6. Shell Programming and Scripting
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am trying to send email with attacment and body using "mailx"
(cat body.txt; uuencode attach.txt) | mailx -s "Attachment" abc@xyz.com
When i type this command, the shell is still waiting for me to enter something in standard input and press control D before it sends a mail and... (2 Replies)
Discussion started by: aliaszero
2 Replies
8. Shell Programming and Scripting
i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ?
here body file contains message, it should display in email, please help
i am using HP-UX
(cat body ;) (uuencode attch1 attch1 ;) | mailx -m -s "testing" "abc@gmail.com"
... (4 Replies)
Discussion started by: only4satish
4 Replies
9. UNIX for Dummies Questions & Answers
Hello, all,
I have been trying to use what Perderabo has given to send attachment via email., but I am not getting the attachments, what I see on the receiving email system are the attachments contents inside the body of the received email. No attachment icon shows in the received email.
I am on... (3 Replies)
Discussion started by: gio001
3 Replies
10. Red Hat
Hello experts!!
I am trying to send an email with message body and attachment.but i am getting any one like message body or attachment.
I tried below command:
(echo "subject:test";echo "MIME-Version: 1.0";echo "content-transfer-encoding:base 64";echo "content-type:txt;name=test.txt";cat... (2 Replies)
Discussion started by: Devipriya Ch
2 Replies
LEARN ABOUT OSF1
uuencode
uuencode(1) General Commands Manual uuencode(1)
NAME
uuencode, uudecode - Encodes or decodes a binary file
SYNOPSIS
uuencode [file] remotefile
uudecode [file...]
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
uudecode: XCU5.0
uuencode: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
DESCRIPTION
The uuencode and uudecode commands are used to send a binary file via uucp or other mail. This combination can be used over indirect mail
links even when uusend is not available.
The uuencode command takes the named file (default standard input) and produces an encoded version on the standard output. The encoding
uses only printing ASCII characters, and includes the mode of the file and the name for re-creation on the remote system, specified by
remotefile.
The uudecode command reads an encoded file, strips off any leading and trailing lines added by mailers, and recreates the original file
with the specified mode and name. Filter the encode through the uudecode program. Filtering the file causes the original file to be auto-
matically recreated. This is possible on the uucp network by using sendmail or by making rmail be a link to mailx. In each case, an alias
must be created in a master file to get the automatic invocation of uudecode.
If neither of the preceding facilities is available on a user's system, uudecode can be applied to the file manually by editing the file
with any text editor, removing the trailing and leading lines, and changing the mode or remote system name. The encoded file is an ordinary
text file.
EXAMPLES
In the following example, the ex1 file is encoded; the output is also redirected to the ex1.out file: prompt> uuencode ex1 ex1.en > ex1.out
If the source ex1 file is as follows:
This example shows how to encode a file using uuencode and how to decode a file using uudecode.
The encoded ex1.out file would be as follows:
begin 644 ex1.en M5&AI<R!E>&%M<&QE('-H;W=S"G1H92!H;W<@=&@96YC;V1E"F$@9FEL92!U
M<VEN9PIU=65N8V]D90IA;F0@:&]W('1O"F1E8V]D92!A(&9I;&4*=7-I;F<@ *=75D96-O9&4N"F]D ` end In the following example, the ex1.out file is
decoded: prompt> uudecode ex1.out
In this example, the uudecode command decodes the file and puts the output in ex1.en. To package up a source tree using tar, com-
press it, uuencode it, and mail it to a user on another system, enter: tar cf - src_tree | compress | uuencode src_tree.tar.Z |
mail sys1!sys2!user1
(Enter the command entirely on one line, not on two lines as shown above.)
When uudecode is run on the target system, the src_tree.tar.Z file is created; it may then be uncompressed and dearchived with tar.
SEE ALSO
Commands: ct(1), cu(1), mailx(1), Mail(1), rmail(1), sendmail(8), tip(1), uucico(8), uucleanup(8), uucp(1), uulog(1), uuname(1),
uupick(1), uusched(8), uusend(1), uustat(1), uuto(1), uux(1)
Standards: standards(5)
uuencode(1)