title: Can I create a file and email it without saving in java?
body: <p>I have a file called info.txt that is saved on my system. </p>
  
  <p>And in my java code I have to modify the file name and send it as email attachment.</p>
  
  <p>For example, in my code I need to create a file with the name info_myCompanyName.txt and copy contents from info.txt to info_myCompanyName.txt and email the newly created file info_myCompanyName.txt in attachment without saving it on my file system?</p>
  
  <p>This is the scenario. I just want to know is it possible, if so how is it possible. I know how to copy a file from another and how to email and etc...</p>