Chris your right. I looked further and here is what HotWired does with HTML
email :
In the email header they put:
Content-Type: text/html; charset=us-ascii; name="index.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="index.html"
Content-Base: http://www.hotwired.com
MIME-Version: 1.0
In the body of the message they start with this line:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
Then the <html> tag. They are not specifying a <head> tag, but I don't
think it will matter if it was. I think it should be but I'm not sure.
PCWeek does the same thing as HotWired. Infobeat puts the content type in
the email header, then puts the meta tag both before and after the <html>
tag.
Hope this helps.
James
-----Original Message-----
From: Chris Pratt [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 30, 1999 4:12 PM
To: [EMAIL PROTECTED]
Subject: Re: CAn someone check this please..
I think you may be mistaken, shouldn't it be in the <HEAD> section?
(*Chris*)
----- Original Message -----
From: James Tomlinson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 30, 1999 12:00 PM
Subject: Re: CAn someone check this please..
> Move the <html> tag after the meta tag. You have this:
> sb.appen("<html><META HTTP-EQUIV=\"Content-Type\"
> CONTENT=\"text/html;charset=iso-8859-1\">
>
> Change it to:
> sb.appen("<META HTTP-EQUIV=\"Content-Type\"
> CONTENT=\"text/html;charset=iso-8859-1\"><html>
>
> I looked at a number of email I receive that are html pages, and each had
> did it this way.
>
> James
>
>
> -----Original Message-----
> From: Kalbrener, Cyrus [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 30, 1999 1:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: CAn someone check this please..
>
>
>
> I may be missing something, but did you plan to keep a reference to
> Session.getInstance(props, null)? If you do, the you can call
> sess.getTransport(MailToAddresses[0]).send(msg);, which might fix your
> problem.
>
> > -----Original Message-----
> > From: Jeetandra Mahtani [ mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> ]
> > Sent: Friday, April 30, 1999 12:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: CAn someone check this please..
> >
> >
> > Hello,
> > I was using sun.net.smtp package to send out email
> > after adding a record to a table but since I cannot
> > set the content type to "text/html", so users who use
> > outlook are not seeing the message but instead are
> > seeing the actual html code. Due to this problem, I
> > am trying to use the javax.mail.* .
> > ......
> > InternetAddress MailToAddress[] = new
> > InternetAddress[1];
> > MailToAddress[0] = new InternetAddress( toemail );
> > InternetAddress MailFromAddress = new
> > InternetAddress(from);
> > java.util.Properties props = new
> > java.util.Properties();
> > props.put("mail.smtp.host", "xyz");
> > MimeMultipart mimeMultipart = new MimeMultipart();
> > MimeBodyPart textBodyPart = new MimeBodyPart();
> > StringBuffer sb = new StringBuffer();
> > sb.appen("<html><META HTTP-EQUIV=\"Content-Type\"
> > CONTENT=\"text/html;charset=iso-8859-1\"><body>");
> > sb.append("Subject: New Complaint");
> > sb.append("Complaint Number: " + c1cono);
> > sb.append("<center><b><font
> > color=\"#FF0000\"></b></center>");
> > sb.append("<div align=\"left\"><table border=\"0\"
> > width=\"100%\" bgco.....
> > ......etc
> > textBodyPart.setContent(sb, "text/html");
> > mimeMultipart.addBodyPart(textBodyPart);
> > MimeMessage msg = new MimeMessage(
> > Session.getInstance(props, (Authenticator) null) );
> > msg.setFrom(MailFromAddress);
> > msg.setRecipients(Message.RecipientType.TO ,
> > MailToAddress);
> > msg.setContent(mimeMultipart);
> > msg.saveChanges();
> > Transport.send(msg);
> > out.println("<center><B>Message emailed out
> > successfully</center></B>");
> > }
> > catch(MessagingException mex) { out.println(mex);}
> >
> > Now, I am not catching an exception, but I am not
> > getting an email. The message 'Message emailed out
> > successfully is not being printed also'
> > Any suggestions?
> > Thanks,
> > JGM
> > _________________________________________________________
> > DO YOU YAHOO!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> <http://mail.yahoo.com>
> >
> > ______________________________________________________________
> > _____________
> > To unsubscribe, send email to [EMAIL PROTECTED] and
> > include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> <http://archives.java.sun.com/archives/servlet-interest.html>
> > Resources:
> > http://java.sun.com/products/servlet/external-
> <http://java.sun.com/products/servlet/external-> > resources.html
> >
> > LISTSERV Help:
> > http://www.lsoft.com/manuals/user/user.html
> <http://www.lsoft.com/manuals/user/user.html>
> >
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html