home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / netprofessional / code / 02.01 / rvw.eims.ETRN.as.txt < prev    next >
Text File  |  2010-09-21  |  623b  |  15 lines

  1. Listing 2: ETRN Example
  2.  
  3. ETRN
  4. This is a very simple script fragment showing how to use the ETRN event. This event is used to start an outgoing mail queue to a transient mail host, delivering all queued mail in one burst.. For example, a script might initiate a PPP connection to the Internet, and then call the ETRN command to send all queued mail for the ISP's mail server being used as a smarthost.
  5.  
  6. tell application "EIMS Server"
  7.     set myMessageCount to ETRN "lists.skylist.net"
  8. end tell
  9.  
  10. display dialog (myMessageCount & ¨ 
  11.     " messages were waiting to be delivered.") ¨
  12.     buttons {"OK"} default button 1 with icon note
  13.  
  14.  
  15.