Writing temporary text files that email as attachments

Notes/Domino development expert Andre Guirard helps a developer create a script that will make a temporary text file that can be sent as an attachment via email.

Where can I get a sample script written in Java that will write a text file in a temporary folder and file, and then send it as an attached file via email after erasing that temporary file?

I don't have a script that has them together in one place, but here's how to create a temporary file.

You can find an example of creating and mailing a document in Domino Designer Help under the heading: Examples: send method and IsSaveMessageOnSend, IsSigned, and SignerVerifier properties. This code assumes your code is in a Notes/Domino agent. If not, see the Domino Designer help under the heading: Examples: Running a Java program.

Do you have comments on this Ask the Expert Q&A? Let us know.

Related information from SearchDomino.com:

  • FAQ: Java advice
  • Tip: Java code to write to text file
  • Reference Center: Java tips and resources
  • Dig Deeper on Java for Lotus Notes Domino

    Start the conversation

    Send me notifications when other members comment.

    Please create a username to comment.




    • iSeries tutorials

      Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

    • V6R1 upgrade planning checklist

      When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

    • Connecting multiple iSeries systems through DDM

      Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...