I'm trying to send an html mail with javamail but when the mail arives to its destination it shows up as a simple text html code.
In addition to this when I send a mail that is received with MS Outlook no headers appears ( missing subject,from etc)
Here's my code:

MimeMessage msg = new MimeMessage(session1);
 
			    msg.setHeader("X-Mailer", "VFDP Mailer");
			    msg.setHeader("MIME-Version", "1.0");	
			    msg.setHeader("Content-Type", "text/html");
			    msg.setFrom(new InternetAddress(user_email_params[0]));
			    msg.addRecipient(Message.RecipientType.TO,new InternetAddress(s_EMAIL));
			    msg.setSubject(s_emailSubject, "UTF-8");
			    msg.setSentDate(new java.util.Date());			    
 
		    	if(!templateId.equals("") && dbPulls.isImageTemplate(templateId)){
		    		msg.setContent(msgBody.toString(), "text/html");
		    	}		    	
 
			    Transport.send(msg);
			} catch (MessagingException mex) {
				returnVal = "ERROR";
				logger.error("Email send failed, exception on: [" + s_EMAIL + "] -" + mex);
			    return ("ERROR");
			}