I tried the oracle mail api that you mentioned but still I am seeing the same issue, that the <html> is being displayed in the form of plain text itself and pasting the logs below:
Loading javamail.default.providers from jar:/javax/mail/mail/1.4/mail-1.4.jar!/META-INF/javamail.default.providers
DEBUG: loading new provider protocol=imap, className=com.sun.mail.imap.IMAPStore, vendor=Sun Microsystems, Inc, version=null
DEBUG: loading new provider protocol=imaps, className=com.sun.mail.imap.IMAPSSLStore, vendor=Sun Microsystems, Inc, version=null
DEBUG: loading new provider protocol=smtp, className=com.sun.mail.smtp.SMTPTransport, vendor=Sun Microsystems, Inc, version=null
DEBUG: loading new provider protocol=smtps, className=com.sun.mail.smtp.SMTPSSLTransport, vendor=Sun Microsystems, Inc, version=null
DEBUG: loading new provider protocol=pop3, className=com.sun.mail.pop3.POP3Store, vendor=Sun Microsystems, Inc, version=null
DEBUG: loading new provider protocol=pop3s, className=com.sun.mail.pop3.POP3SSLStore, vendor=Sun Microsystems, Inc, version=null
Loading javamail.default.providers from jar:file:/C:/FAST/fastas/3.3.2/default/fcBase/repo/com/sun/mail/javax.mail/1.5.2/javax.mail-1.5.2.jar!/META-INF/javamail.default.providers
DEBUG: loading new provider protocol=imap, className=com.sun.mail.imap.IMAPStore, vendor=Oracle, version=null
DEBUG: loading new provider protocol=imaps, className=com.sun.mail.imap.IMAPSSLStore, vendor=Oracle, version=null
DEBUG: loading new provider protocol=smtp, className=com.sun.mail.smtp.SMTPTransport, vendor=Oracle, version=null
DEBUG: loading new provider protocol=smtps, className=com.sun.mail.smtp.SMTPSSLTransport, vendor=Oracle, version=null
DEBUG: loading new provider protocol=pop3, className=com.sun.mail.pop3.POP3Store, vendor=Oracle, version=null
DEBUG: loading new provider protocol=pop3s, className=com.sun.mail.pop3.POP3SSLStore, vendor=Oracle, version=null
DEBUG: getProvider() returning provider protocol=smtp; type=javax.mail.Provider$Type@6a70122; class=com.sun.mail.smtp.SMTPTransport; vendor=Sun Microsystems, Inc
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "mailhost.testdomain.net", port 25, isSSL false
220 se2.svr.bankone.net ESMTP Sendmail Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1; Fri, 3 Jun 2016 21:28:06 GMT
DEBUG SMTP: connected to host "mailhost.testdomain.net", port: 25
EHLO L3SR7P12
s250-se2.svr.bankone.net Hello [10.181.201.114], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 41943040
250-ETRN
250-STARTTLS
250-DELIVERBY
250 HELP
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "SIZE", arg "41943040"
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "STARTTLS", arg ""
DEBUG SMTP: Found extension "DELIVERBY", arg ""
DEBUG SMTP: Found extension "HELP", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<
test@test.com>
250 2.1.0 <
test@test.com>... Sender ok
RCPT TO:<
test@test.com>
t250 2.1.5 <
test@test.com>... Recipient ok
DEBUG SMTP: Verified Addresses
DEBUG SMTP:
test@test.com
DATA
354 Enter mail, end with "." on a line by itself
<HTML>
<HEAD>
<TITLE>
test
</TITLE>
</HEAD>
<BODY>
<h1>test</h1>
</BODY>
</HTML>
.
250 2.0.0 u53LS6QQ003721 Message accepted for delivery
QUIT
Mail was sent successfully.