I am generating emails using Spring JavaMail and Velocity Template to send to the customer.I have to store these outgoing Emails into some folder in .MSG format.I did so much research on the web.But not able to find right Java API to do this.And in Spring Java Mail I am not able to find writeTO() method which is in JavaX.mail API.Can some one help me with this issue.
I am generating emails using Spring JavaMail and Velocity Template to send to the
Share
You already found that javax.mail.Part has a
writeTomethod.So what you need is a way to “convert” a spring simple mail to an javax.mail
It should work more or less this way: