How can I send an attachment without having to use a physical file?

John Zukowski

Instead of using FileDataSource, create a custom DataSource. You can find a ByteArrayDataSource example of this in the demo directory that comes with JavaMail.

About | Sitemap | Contact
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.