Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Problem to send rtf inline body Post 302155297 by srik_ux on Thursday 3rd of January 2008 12:50:53 PM
Old 01-03-2008
script and output

#!/usr/bin/ksh

export MAILTO="xxx@yyy.com"
export CONTENT="1.rtf"
export SUBJECT="Subject"
(
echo "Subject: $SUBJECT"
echo "MIME-Version:1.0"
echo "Content-Type:text/html"
echo "Content-Disposition:inline"
echo "Content-Transfer-Encoding:7bit"
cat $CONTENT
) > test2.dat
/usr/sbin/sendmail $MAILTO < test2.dat

Email coming as :
{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff31507\deff0\stshfdbch31506\stshfloch31506\stshfhich315 06\stshfbi31507\deflang1033\deflangfe1033\themelang1033\themelangfe0\themelangcs0{\fonttbl{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f34\fbidi \froman\fcharset1\fprq2{\*\panose 02040503050406030204}Cambria Math;} {\f37\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204}Calibri;}{\flomajor\f31500\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;} {\fdbmajor\f31501\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fhimajor\f31502\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria;} {\fbimajor\f31503\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\flominor\f31504\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;} {\fdbminor\f31505\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fhiminor\f31506\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to send body in a mail

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"... (6 Replies)
Discussion started by: rajendragora
6 Replies

2. UNIX for Dummies Questions & Answers

To send an email with the body content extracted from a file

Hi, I have been trying to shoot an email with the email body to be obtained from a file. Can someone please help me with it.. I have been trying to use the MAILX commad for the same. mailx -s "test email" -r sender@test.com < file.txt but it sends the file as an attachment,while i... (3 Replies)
Discussion started by: rohit.shetty84
3 Replies

3. Shell Programming and Scripting

How to send a mail with attachement as well as message Body..?

Hi all, i am working with CSH, i want to know that how to send a mail in UNIX shell script (CSH) with attachment as well as message body. i know that how to send a mail with attachment and message body. but i want know both things in a single mail Suggession would be appreciate. ... (1 Reply)
Discussion started by: psiva_arul
1 Replies

4. Shell Programming and Scripting

how to send an email with some body content and attachment

hi plz help me in sending a mail with some data in body and an attachment as some txt file. currently i am able to send mail with some body content, i need an example how to send the same along with attachment. thanks in advance -bali (2 Replies)
Discussion started by: balireddy_77
2 Replies

5. Shell Programming and Scripting

how to send jpg as body

Hi, I ftp the .jpg file from windows to unix machine, now i need to send the jpg file as body to (not as attachment) outlook, can anyone send the sample code for this? (1 Reply)
Discussion started by: vasu.g
1 Replies

6. Shell Programming and Scripting

send attachment and body in one mail using mailx

Hi, Our requirement is to send an attachment and content in a single mail. I am using the below command to send attachement. --------------------- (uuencode $exp_file $exp_file) |mailx -s "$email_subject" $EmailRecipients -------------------- I m not able to send any message in the... (4 Replies)
Discussion started by: ashwin3086
4 Replies

7. Shell Programming and Scripting

Unable to send mail with inline html along with attachment. Please help!

The below code is not working. I am able to send only inline html or only attachment. When trying to do both, only inline html is sent without attachment. Please help! #!/bin/ksh (echo "Subject: Test Mail - HTML Format" echo "MIME-Version: 1.0" echo "Content-Type: text/html" echo... (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

8. Shell Programming and Scripting

Send SAS Graph in Email Body from UNIX

Hi Friends, I am trying to send a graph in Body of HTML Email which is generated using a SAS Code. But, I am not able to see the picture, Instead seeing a red cross mark in Email Body. Could you please help me in fixing this problem? Also, I do not have a Shared Place (or) a web server to... (0 Replies)
Discussion started by: Samuels
0 Replies

9. UNIX for Dummies Questions & Answers

Replacing duplicated extensions, like .rtf.rtf

Hi and good day, In Terminal I tried mv *.rtf.rtf *.rtf to get rid of double rtf extensions ( which came about from some other process), but this doesn't work. I don't know why. Also it should be for the main and for subfolders. with -R? Anyway, any assistance would be greatly... (6 Replies)
Discussion started by: OmarKN
6 Replies

10. Shell Programming and Scripting

Difficulty to send image in mail body.

I have jpg file in my server. I am facing difficulty while sending the image in body . appreciate your help to fix to below code. echo "--FILEBOUNDARY" echo "Content-Type: image/jpg" echo "Content-Disposition: inline; filename=\"tick.jpg\"" echo... (3 Replies)
Discussion started by: Jewel
3 Replies
OGONKIFY(1)						      General Commands Manual						       OGONKIFY(1)

NAME
ogonkify - international support for PostScript SYNOPSIS
ogonkify [-p procset] [-e encoding] [-r Old=New] [-a] [-c] [-h] [-t] [-A] [-C] [-H] [-T] [-AT] [-CT] [-ATH] [-CTH] [-E] [-N] [-M] [-mp] [-SO] [-AX] [-F] [-RS] [--] file ... DESCRIPTION
ogonkify does various munging of PostScript files related to printing in different languages. Its main use is to filter the output of Net- scape, Mosaic and other programs in order to print in languages that don't use the standard Western-European encoding (ISO 8859-1). SUMMARY USAGE
Installation instructions are provided in the file INSTALL. Assuming the installation has been correctly completed, save the PostScript output of Netscape or Mosaic to a file, say output.ps. Then print it using % ogonkify -AT -N output.ps | lpr in the case of Netscape, or % ogonkify -AT -M output.ps | lpr in the case of Mosaic. You may want to change the -AT option to -CT in order to use a high quality Courier font from IBM (at the price of slower printing). An alternative way to print from Netscape is to set the printing command in the printing dialog box to: ogonkify -AT -N | lpr For more details, see the USAGE section below. OPTIONS
-p Includes the specified procset in the output file. -e Set the encoding of the output. Defaults to L2 (ISO 8859-2, a.k.a. ISO Latin-2). Other possible values are L1 (ISO 8859-1, a.k.a. ISO Latin-1), L3 (ISO 8859-3, a.k.a. ISO Latin-3), L4 (ISO 8859-4, a.k.a. ISO Latin-4), L5 (ISO 8859-9, a.k.a. ISO Latin-5), L6 (ISO 8859-10, a.k.a. ISO Latin-6), L7 (ISO 8859-13, a.k.a. ISO Latin-7), L9 (ISO 8859-15, a.k.a. ISO Latin-9), CP1250 (Microsoft Code Page 1250, a.k.a. CeP), ibmpc (Original IBM-PC encoding), mac (Apple Macintosh encoding) and hp (HP Roman Encoding). -r Use the font New in place of Old. Will lead to ugly or unreadable output when the metrics mismatch. -a Do the right font remappings for using Courier-Ogonki in place of Courier (the a stands for Adobe Courier). This avoids downloading any fonts to the printer. -c Do the right font remappings for using IBM Courier in place of Adobe Courier. -t Do the right font remappings for using Times-Roman-Ogonki in place of Times-Roman. -h Do the right font remappings for using Helvetica-Ogonki in place of Helvetica. -A Like -a but also downloads the Courier-Ogonki fonts. -C Like -c, but also downloads the IBM Courier fonts. -H Like -h, but also downloads the Helvetica-xxx-Ogonki fonts. -T Like -t, but also downloads the Times-xxx-Ogonki fonts. -CT Equivalent to -C -T. -CTH Equivalent to -C -T -H. -E Add the Euro currency sign to all standard fonts (use with -e L9). -N Do Netscape processing. -M Do Mosaic processing. -mp Do mp processing. Will not work with the -A option (use -C instead). -SO Do StarOffice processing. -AX Do ApplixWare processing. -F Do XFig processing. -RS Recode standard fonts. This is likely to work with applications that leave fonts in AdobeStandardEncoding, typically applications that do not even support printing even of characters. -- End options. USAGE
Let us assume that you want to print a WWW page encoded in ISO Latin-2. Netscape stubbornly insists on printing it as ISO Latin-1. By using the File->Print command, have Netscape send the output to a file, say alamakota.ps. As ogonkify is configured for ISO Latin-2 by default, passing it the PostScript generated by Netscape will correct the encoding of the fonts. It is enough to do: % ogonkify -N <alamakota.ps | lpr However, most printers do not have fonts with the needed characters installed; synthetized fonts will be downloaded and used instead of Courier and Times-Roman with -AT, and a very good Courier font from IBM will be used with: -CT. The command will therefore typically be: % ogonkify -N -AT <alamakota.ps | lpr or eventually % ogonkify -N -CT <alamakota.ps | lpr Typical usage with other programs is: % ogonkify -M -AT <alamakota.ps | lpr % ogonkify -mp -AT <alamakota.ps | lpr % ogonkify -SO -AT <alamakota.ps | lpr % ogonkify -AX -ATH <alamakota.ps | lpr % ogonkify -XF -ATH <alamakota.ps | lpr BUGS
Characters with an `ogonek' should be constructed differently (for instance, the `ogonek' used with an `a' should be differently shaped than the one used with an `e'.) It would be better to patch the programs we have the sources to than to post-process the produced PostScript. The program is written in Perl. NOTES
In order to view the output PostScript with Ghostscript, you might need to run gs with the flag -dNOPLATFONTS, and ghostview with the flag -arguments -dNOPLATFONTS. Netscape, IBM, Adobe, PostScript, StarOffice, ApplixWare and possibly others are registered trademarks. THANKS
Much of the composite character data have been provided by Primoz Peterlin, H. Turgut Uyar, Ricardas Cepas, Kristof Petrovay and Jan Prikryl. Jacek Pliszka provided the support for StarOffice. Andrzej Baginski provided the support for ApplixWare. Markku Rossi wrote genscript and provided many useful encoding vectors with the distribution. Throughout writing the Postscript code, I used the ghostscript interpreter, by Peter Deutsch. Larry Wall wrote perl, the syntax and semantics of which are a never ending source of puzzlement. AUTHOR
Juliusz Chroboczek <jec@dcs.ed.ac.uk>, with help from loads of people. McKornik Jr. 14 May 1999 OGONKIFY(1)
All times are GMT -4. The time now is 01:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy