home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Unleashed / Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso / source / chap25 / vbu2502.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-09-14  |  1.7 KB  |  57 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   4140
  5.    ClientLeft      =   1140
  6.    ClientTop       =   1515
  7.    ClientWidth     =   6690
  8.    Height          =   4545
  9.    Left            =   1080
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4140
  12.    ScaleWidth      =   6690
  13.    Top             =   1170
  14.    Width           =   6810
  15.    Begin MSMAPI.MAPIMessages MAPIMessages1 
  16.       Left            =   2280
  17.       Top             =   2580
  18.       _Version        =   65536
  19.       _ExtentX        =   741
  20.       _ExtentY        =   741
  21.       _StockProps     =   0
  22.    End
  23.    Begin MSMAPI.MAPISession MAPISession1 
  24.       Left            =   1740
  25.       Top             =   2580
  26.       _Version        =   65536
  27.       _ExtentX        =   741
  28.       _ExtentY        =   741
  29.       _StockProps     =   0
  30.    End
  31. Attribute VB_Name = "Form1"
  32. Attribute VB_Creatable = False
  33. Attribute VB_Exposed = False
  34. Option Explicit
  35. Private Sub Form_Load()
  36.     '
  37.     ' smallest e-mail program
  38.     '
  39.     MAPISession1.SignOn     ' log into MAPI server
  40.     MAPIMessages1.SessionID = MAPISession1.SessionID
  41.     '
  42.     MAPIMessages1.Compose   ' clear buffer
  43.     MAPIMessages1.MsgSubject = "User's CONFIG.SYS File"
  44.     MAPIMessages1.MsgNoteText = "Here is the CONFIG.SYS File" + Chr(13) + " "
  45.     '
  46.     MAPIMessages1.AttachmentPosition = Len(MAPIMessages1.MsgNoteText)
  47.     MAPIMessages1.AttachmentType = mapData
  48.     MAPIMessages1.AttachmentName = "System Configuration File"
  49.     MAPIMessages1.AttachmentPathName = "C:\CONFIG.SYS"
  50.     '
  51.     MAPIMessages1.Send True ' send it
  52.     '
  53.     MAPISession1.SignOff    ' exit MAPI server
  54.     End
  55.     '
  56. End Sub
  57.