home *** CD-ROM | disk | FTP | other *** search
- <[
- // SENDMAIL.AP
- // (c) 1998 by SmartDesk, Inc., All Rights Reserved
- //
- // You are free to use this code without charge provided you
- // agree to abide by the terms and conditions of the licensing
- // agreement located on the SmartDesk web site (www.smartdesk.com).
-
- LIBRARY sdmail
-
- session = new( "session", param( 1 ), param( 2 ) )
- mail = new( "sendmail", session )
-
- // initialize mail debugging to display connection details in the output window
- mail.debug = 1
-
- // get the variables from the command line
- mail.GetVars( )
-
- // customize any internal class variables here
- // mail.to = ""
- // mail.tohost = ""
- // mail.from = ""
- // mail.fromhost = ""
- // mail.subject = ""
- // mail.msg = ""
- // mail.port = 25
- // mail.defserver = "mail"
-
- // validate and send the mail
- // display conversation details
- ! webHeader( )
- ! mail.send( )
- ! webFooter( )
-
- return( 1 )
- ]>
-
-