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:
Dig Deeper on Java for Lotus Notes Domino
Related Q&A from Andre Guirard
Learn how you can use LotusScript and OLE to create and populate Microsoft Excel spreadsheets, as well as a little bit about Lotus Symphony. Continue Reading
Discover options you can use if you'd like external users to be able to access a workflow-based Notes Domino application through different ... Continue Reading
Learn why you may receive the error message: "Illegal circular use: Audit Trail" when trying to open Lotus Notes documents that use copied forms. Continue Reading