01-13-2012
hi,
think about saving the body of the message in a file, converting that file with unix2dos, and finally using the content of the file as input for mail.
see ya
fra
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a utility that opens a telnet session and allows me to execute commands through a script. The utility allows me to output to a text file whatever is outputted to screen.
This utility runs from a DOS prompt in Windows 95/98, NT or 2000. How can I mail text file this to a certain user.
I... (2 Replies)
Discussion started by: petrosi
2 Replies
2. Shell Programming and Scripting
Hi all,
I am working on UNIX (Solaris28). I would like to send an email in which the body will be in html format and, in the same mail, a xls file has to be attached.
I have tried this: the file is correctly attached but the body comes as html source and not formatted. If I do not attach the... (4 Replies)
Discussion started by: stefan.yu
4 Replies
3. UNIX for Dummies Questions & Answers
Hi Buddies,
I have a unix client and want to send a message (containg some data) to a windows Database server to query from it and return the result.
I shall be so thankfull if you help me out.:b::)
Warm Regards,
Jessi (1 Reply)
Discussion started by: jessica-adams
1 Replies
4. Shell Programming and Scripting
Hi,
Is it possible to send mail from my HP-Ux system with images, rich text? I would like to program in such a way that I have my company's logo(.jpg) image attached in the mail geeting triggered. I would like to send a rich text/HTML email instead of plain text mail to the recipients. Is it... (2 Replies)
Discussion started by: rythym05
2 Replies
5. Shell Programming and Scripting
I have a list of mail ids in text file and want a ksh script that reads this text file and sends a mail to all mail ids with same subject line and content.
I am using UX-HP machine and KSH.
Thanks for help in advance! (5 Replies)
Discussion started by: Sriranga
5 Replies
6. Shell Programming and Scripting
Hi,
I want to send color text as body of mail with multiple attachments.How to do this?I used sendmailcommand but this command fails for multiple attachments.Give me some solution on this.
:wall: (0 Replies)
Discussion started by: AhmedLakadkutta
0 Replies
7. UNIX for Beginners Questions & Answers
Hello,
Somebody can help me to develop a script for the below requirement
I have a 3 files in a directory which was dynamically changed everyday basis. I need a script to fetch the 1pattern of strings in each file. if the three matching pattern is same send a mail with subject as success else... (1 Reply)
Discussion started by: MATHANKUMAR
1 Replies
8. UNIX for Beginners Questions & Answers
Hi All,
I have a working script as below.
echo "Files loaded with $(cat /var/tmp/script.X1.out)" | mail -s "Files loaded with return code" mailid
This script takes the output from script.X1.out file and appends the text "Files loaded with return code" and sends the email. Now what I want... (5 Replies)
Discussion started by: midhun3108
5 Replies
9. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
10. UNIX for Beginners Questions & Answers
I have a sample script here I want to bold the word BOLD in the text and send through email. Tried several ways but not seems to working.
BODY="Hello. I want to BOLD this"
{
echo "From: from@gmail.com"
echo "To: to@gmail.com"
echo "Subject: Texting"
... (1 Reply)
Discussion started by: lpoolfc
1 Replies
LEARN ABOUT SUNOS
unix2dos
unix2dos(1) User Commands unix2dos(1)
NAME
unix2dos - convert text file from ISO format to DOS format
SYNOPSIS
unix2dos [-ascii] [-iso] [-7] [-437 | -850 | -860 | -863 | -865] originalfile convertedfile
DESCRIPTION
The unix2dos utility converts ISO standard characters to the corresponding characters in the DOS extended character set.
This command may be invoked from either DOS or SunOS. However, the filenames must conform to the conventions of the environment in which
the command is invoked.
If the original file and the converted file are the same, unix2dos will rewrite the original file after converting it.
OPTIONS
The following options are supported:
-ascii Adds carriage returns and converts end of file characters in SunOS format text files to conform to DOS requirements.
-iso This is the default. Converts ISO standard characters to the corresponding character in the DOS extended character set.
-7 Converts 8 bit SunOS characters to 7 bit DOS characters.
On non-i386 systems, unix2dos will attempt to obtain the keyboard type to determine which code page to use. Otherwise, the default is US.
The user may override the code page with one of the following options:
-437 Use US code page
-850 Use multilingual code page
-860 Use Portuguese code page
-863 Use French Canadian code page
-865 Use Danish code page
OPERANDS
The following operands are required:
originalfile The original file in ISO format that is being converted to DOS format.
convertedfile The new file in DOS format that has been converted from the original ISO file format.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
SEE ALSO
dos2unix(1), ls(1), attributes(5)
DIAGNOSTICS
File filename not found, or no read permission
The input file you specified does not exist, or you do not have read permission. Check with the SunOS command, ls -l (see ls(1)).
Bad output filename filename, or no write permission
The output file you specified is either invalid, or you do not have write permission for that file or the directory that contains it.
Check also that the drive or diskette is not write-protected.
Error while writing to temporary file
An error occurred while converting your file, possibly because there is not enough space on the current drive. Check the amount of
space on the current drive using the DIR command. Also be certain that the default diskette or drive is write-enabled (not write-pro-
tected). Notice that when this error occurs, the original file remains intact.
Translated tmpfile name = filename.
Could not rename tmpfile to filename.
The program could not perform the final step in converting your file. Your converted file is stored under the name indicated on the
second line of this message.
SunOS 5.10 14 Sep 2000 unix2dos(1)