home *** CD-ROM | disk | FTP | other *** search
Visual Basic class definition | 2000-02-09 | 4.2 KB | 110 lines |
- VERSION 1.0 CLASS
- BEGIN
- MultiUse = -1 'True
- Persistable = 0 'NotPersistable
- DataBindingBehavior = 0 'vbNone
- DataSourceBehavior = 0 'vbNone
- MTSTransactionMode = 0 'NotAnMTSObject
- END
- Attribute VB_Name = "cSend"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = False
- Attribute VB_Exposed = True
- '********************************************************************************'
- '* *'
- '* Programmer: Donathan Hutchings *'
- '* Date: 02/09/2000 *'
- '* Project: MAPI Mail ActiveX Dynamic Link Library *'
- '* *'
- '* Purpose: This class is designed to be the send interface between the *'
- '* cMAPI and class. It also provides the method to send messages. *'
- '* *'
- '* Required: The Microsoft MAPI control is required to use this DLL. *'
- '* *'
- '********************************************************************************'
-
- Option Explicit
-
- Private m_SendTo As String 'Temporary variable to store the destination of the email.
- Private m_Subject As String 'Temporary variable to store the subject of the email.
- Private m_Message As String 'Temporary variable to store the message of the email.
- Private m_FileName As Variant 'Temporary variable to store the file name(s) of the attachment(s).
-
- 'This is the GET property to retrieve the destination of the email message.
- Public Property Get SendTo() As String
- SendTo = m_SendTo
- End Property
-
- 'This is the LET property to set the destination of the email message.
- Public Property Let SendTo(vNewValue As String)
- m_SendTo = vNewValue
- End Property
-
- 'This is the GET property to retrieve the subject of the email message.
- Public Property Get Subject() As String
- Subject = m_Subject
- End Property
-
- 'This is the LET property to set the subject of the email message.
- Public Property Let Subject(vNewValue As String)
- m_Subject = vNewValue
- End Property
-
- 'This is the GET property to retrieve the message of the email message.
- Public Property Get Message() As String
- Message = m_Message
- End Property
-
- 'This is the LET property to set the message of the email message.
- Public Property Let Message(vNewValue As String)
- m_Message = vNewValue
- End Property
-
- 'This is the GET property to retrieve the file name(s) of the attachments.
- Public Property Get FileName() As Variant
- FileName = m_FileName
- End Property
-
- 'This is the LET property to set the file name(s) of the attachments.
- Public Property Let FileName(vNewValue As Variant)
- m_FileName = vNewValue
- End Property
-
- 'This function sends the email to the MAPI email clients OutBox.
- 'Properties used: FileName
- ' Message
- ' Subject
- ' SendTo
-
- 'The ErrCode and ErrMsg are variables that are returned to the calling
- 'routine if an error occurs.
- Public Function SendMail(ErrCode As Long, ErrMsg As String) As Boolean
- Diml(ErrcVtxOutNee
- DataBindingtNee
- DataBi
- Public Property Let FileName(vn SendMail(ErrCode ert nds the email DataBindinmentspTriProBi
- Pnis the email oert nds turx oFsinmentspTri( uerty
-
- 'Thi' of obaan
- (vNewValue As String)
- m_Message = vNewValue
- End Property
-
- 'This sdingtNi
- Pnis the emAeThe) O: elM O: snnction SendMail(ErrCode As Long, ErrMsg As String) As Boolean
- D0nf0rwValue As String)
- m_Subject = vNewValue
- End Probject = NewValu m_(eNamVItentsptaBasssssssee M=' of obaan
- (vNStrC uersssssMmNmng
- '.ewValue
- End Probject = NewValu mos isfOnoS
- 'u mo"aTenject = NewVlue
- Endircn O: oFsiy
- atdingtNi
- Pnis the emAeTu mo)lT of ict = NewVlue
- Endircn O: oFsiy
- atdingtNi
- Pnis the e)lT F2rngtNi
- Pnisiy
- nf0t ndsLw'nf0t ndsLwsLw'n0t d to be the send interface betorface be, ErrMsg iOfF