Jeetandra,
Here is the stuff for setting the mimetypes before sending the mail to a
user with all the record info.
Hashtable myMIMETEXT = new Hashtable();
myMIMETEXT .put((Object)"Content-Type",
(Object)"text/comma-separated-value");
myMIMETEXT .put((Object)"Content-Disposition", (Object)"attachment;
filename=\""+mimeFileName+"\"");
myMIMETEXT .put((Object)"Content", (Object)getMime());
mailClient.putMime("someobject", myMIMETEXT );
This is what i do in my putmime function:
public void putMime(String mimeTitle, Hashtable mimeContent) {
mimes.put((Object)mimeTitle, (Object)mimeContent);
hasMime = true;
}
this is how it goes
venkat
-----Original Message-----
From: Jeetandra Mahtani <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, April 29, 1999 1:38 PM
Subject: Setting type to html
>Hello,
>I am mailing the information that a user enters in a
>form to a specified individual. Now this information
>does contain some html code too. When the message is
>sent to a user with a hotmail.com account, its fine,
>that is the user does not see the html code but the
>html output. But when sent to a client using OutLook,
>the user actually sees the html code.
>Any way to get around this?
>
>I am using:
>sun.net.smtp.SmtpClient smtp = new
>sun.net.smtp.SmtpClient("xyz");
>smtp.from(from);
>smtp.to(to);
>PrintStream msg = smtp.startMessage();
>msg.println("To: " + to);
>msg.println();
>msg.println("Subject: New Complaint");
>msg.println();
>msg.println("Complaint Number: " + c1cono);
>msg.println();
>msg.println("<html><body><center><b><font
>color=\"#FF0000\"></b></center>");
>.......
>
>Thanks,
>JGM
>
>
>
>
>
>_________________________________________________________
>DO YOU YAHOO!?
>Get your free @yahoo.com address at 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
>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