Created
December 2, 2013 13:14
-
-
Save ghooghe/7749251 to your computer and use it in GitHub Desktop.
Write MimeMessage to .eml file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File eml = File.createTempFile("mailservice-output", ".eml"); | |
OutputStream out = new FileOutputStream(eml); | |
msg.writeTo(out); | |
logger.debug("Temporary e-mail file written to {}", eml.getAbsolutePath()); | |
IOUtils.closeQuietly(out); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment