i tried to send multiple lines of string using .setContent method however the last lines will over write all the strings before and hence only the last line is sended. Where can i get source of sending multiple lines of string vis java mail?
setContent just sets. It doesn't append. Try concatenating your HTML using a StringBuffer, then call setContent with the results of StringBuffer.toString.