Mar 16, 2004 #1 raji96 Programmer Aug 7, 2001 64 US I am trying to put the content of my mail in html format but my tags are also being printed in the mail how should can i get it write. strMailBody ="<HTML><BODY>" +"First Name:" + strutsForm.getFirstName() +"\n" + Thanks!
I am trying to put the content of my mail in html format but my tags are also being printed in the mail how should can i get it write. strMailBody ="<HTML><BODY>" +"First Name:" + strutsForm.getFirstName() +"\n" + Thanks!
Mar 16, 2004 #2 sedj Programmer Aug 6, 2002 5,610 When you set the content of the MimeMessage, set the mime content type also, eg : Code: Message m = new MimeMessage(); m.setRecipient ... m.setFrom ... ... m.setContent("<html><body><i>Hello</i></body></html>", "text/html"); ... Transport.send(m); Upvote 0 Downvote
When you set the content of the MimeMessage, set the mime content type also, eg : Code: Message m = new MimeMessage(); m.setRecipient ... m.setFrom ... ... m.setContent("<html><body><i>Hello</i></body></html>", "text/html"); ... Transport.send(m);