I have a java string like:
From: firstname.lastname@example.orgDate: 8/7/2012 5:20:39 PMTo: email@example.comCc: firstname.lastname@example.orgSubject: This is the suject line Hi,I would like to recover all my money from the bank. Would you be able to send me them?Regards,Farooq.
Actually above is the email content which is read as a string in a java class.
Now I would like to email from java application.I'm using the below code.
MimeBodyPart htmlPart = new MimeBodyPart();
MimeMultipart mimeMultipart = new MimeMultipart();
I want help in breaking the above string in to a proper format.The to and CC can contain n number of addressess.
WILL BE VERY HELPFUL IF YOU COULD WRITE THE CODE, THANKS IN ADVANCE
Please Help urgently..