Hello,
After I add a record to a table, I also mail out the
details from the form that the user fills up to
specified users. Now, when I sent to a user using a
mail client as hotmail.com, the user got the record
with no html code but when I sent it to a user using
outlook, the user got the actual html(ie, the html
code was seen) I am using something like:
Statement stmt = c.createStatement();
ParameterParser parser = new ParameterParser(req);
String fromemail = c1crus + "@xyz.com";
String from =
parser.getStringParameter("from",fromemail);
String toemail = c1crus + "@hotmail.com.com";
String to = parser.getStringParameter("to",toemail);
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>");
msg.println("<div align=\"left\"><table border=\"0\"
width=\"100%\" bgcolor=\"#E9E9E9\">");
msg.println("<tr>");
msg.println("<td width=\"30%\"><small><small><B>Date
Initiated by Cust: " + c1idat +
"</B></small></small></td>");
......
......

Any suggestions on how I would be able to correct this?
Thanks,
J



_________________________________________________________
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

Reply via email to