Home > Ask the Domino Experts > Domino Development Questions & Answers > Writing temporary text files that email as attachments
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Writing temporary text files that email as attachments

Andre Guirard EXPERT RESPONSE FROM: Andre Guirard

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 30 November 2006
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


  • Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



    RELATED CONTENT
    Java for Lotus Notes Domino
    Top 10 Lotus Notes/Domino coding and development tips of 2008
    Java code inserts data from Notes documents into a SQL table
    Java code shortens strings in a SQL table
    How to execute a stored procedure in Lotus Notes Domino using Java
    Top 10 Lotus Notes Domino programming and development tips of 2007
    How to return an HTML representation of a Lotus Notes rich-text field
    Shrink Lotus Notes databases with many attachments
    Converting Lotus Notes Domino Web pages to PDF files with a Java agent
    Developing Eclipse plug-ins for Lotus Notes and Domino -- 7 tips in 7 minutes
    A bevy of Notes/Domino development tips

    Domino Development
    Can I create and copy Microsoft Excel spreadsheets with LotusScript?
    'Illegal circular use: Audit Trail' error when opening Lotus Notes docs
    How to make computed fields recalculate
    Sending and logging faxes from Lotus Notes and Domino
    Accessing documents in a Lotus Notes database
    Adding an action to the Lotus Notes right-click menu
    Trapping the on-click event of a radio button
    Copying a form object using LotusScript
    Connecting to a remote DB2 server with LEI
    Lotus Notes' document check-in/check-out functionality

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice



    Lotus Notes Domino on Blackberry and mobile devices
    HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts