home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 September / CHIPCD_9_99.iso / software / serwery_www / websuite / websuite.exe / SENDMAIL.AP_ / SENDMAIL.AP
Text File  |  1999-01-12  |  922b  |  39 lines

  1. <[
  2.     // SENDMAIL.AP
  3.     // (c) 1998 by SmartDesk, Inc., All Rights Reserved
  4.     //
  5.     // You are free to use this code without charge provided you
  6.     // agree to abide by the terms and conditions of the licensing
  7.     // agreement located on the SmartDesk web site (www.smartdesk.com).
  8.  
  9.     LIBRARY sdmail
  10.  
  11.     session = new( "session", param( 1 ), param( 2 ) )
  12.     mail = new( "sendmail", session )
  13.  
  14.     // initialize mail debugging to display connection details in the output window
  15.     mail.debug = 1
  16.  
  17.     // get the variables from the command line
  18.     mail.GetVars( )
  19.  
  20.     // customize any internal class variables here
  21.     // mail.to = ""
  22.     // mail.tohost = ""
  23.     // mail.from = ""
  24.     // mail.fromhost = ""
  25.     // mail.subject = ""
  26.     // mail.msg = ""
  27.     // mail.port = 25
  28.     // mail.defserver = "mail"
  29.  
  30.     // validate and send the mail
  31.     // display conversation details
  32.     ! webHeader( )
  33.     ! mail.send( )
  34.     ! webFooter( )
  35.     
  36.     return( 1 )
  37. ]>
  38.  
  39.