How do you send html msg from Unix to Outlook

N

nickelstat

Hi

How do you send html msg from Unix to Outlook and HAVE OUTLOOK DISPLAY
IN HTML?

My guess is that outlook is looking for a certain tag.
This is what I tried:

1. in Outlook, I compose a simple html table and send it to myself.
2. I save that message "save as html"
3. from Unix, I send that exact saved message to myself again. but this
time, outlook does NOT display in html format, but it displays the text
of the html program.

Ii am writing a program that sends mail to a whole bunch of people, and
it would be a lot more intelligible in html format than in text.
Here is the contents (lots of fats cut off).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<style type="text/css">
#black {
background-color: black;
color: yellow;
font-style:bold;
}
</style>
</head>
<BODY lang=EN-US vLink=purple link=blue>
<table border><tr>
<th>col1
<th>col2
</tr><tr>
<td>data1
<td>data2
</tr><tr>
<td>data11
<td>data22
</tr></table>
</body> </html>

thank you very much in advance
 
G

Gordon

Hi

How do you send html msg from Unix to Outlook and HAVE OUTLOOK DISPLAY
IN HTML?

How and what are you using in Unix to send the mail? I have no difficulty
sending html messages from KMail to Outlook........
 
N

nickelstat

Gordon said:
How and what are you using in Unix to send the mail? I have no difficulty
sending html messages from KMail to Outlook........

mailx -s 'my subject' (e-mail address removed) < htmlfile

and also from a perl script using the Smtp package/interface.
The contents are identical.

The mail demon is /usr/lib/sendmail on solaris.

I have never heard of KMail. I assume it's a user interface to
sendmail?

How are you doing it? do you create a file and send the file as body?
If you do, would you share a sample of it?
I suspect a certain html or mail tag is missing.

Thanks for helping
 
G

Gordon

mailx -s 'my subject' (e-mail address removed) < htmlfile

and also from a perl script using the Smtp package/interface.
The contents are identical.

The mail demon is /usr/lib/sendmail on solaris.

I have never heard of KMail. I assume it's a user interface to
sendmail?

How are you doing it? do you create a file and send the file as body?
If you do, would you share a sample of it?
I suspect a certain html or mail tag is missing.

Thanks for helping

KMail is a mail client running on Linux........
 
P

Pat Willener

You have to make sure that the email headers specify the Content-Type:
text/html, otherwise the receiving email client won't know the format.
 
N

nickelstat

Pat said:
You have to make sure that the email headers specify the Content-Type:
text/html, otherwise the receiving email client won't know the format.

Yes, I've even added that line in the BODY of the email, but that did
not work.
Which part of the header should it be?
 
P

Pat Willener

Yes, I've even added that line in the BODY of the email, but that did
not work.
Which part of the header should it be?

Send a test HTML message from a Windows-based mail client and see where
the Content-Type is inserted.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top