home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{B190576C-254A-11D2-B61E-C80424DEEF17}#51.0#0"; "LCocx.ocx"
- Begin VB.Form Email
- BorderStyle = 1 'Fixed Single
- Caption = "EasyEmail"
- ClientHeight = 5628
- ClientLeft = 36
- ClientTop = 324
- ClientWidth = 8184
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 5628
- ScaleWidth = 8184
- StartUpPosition = 3 'Windows Default
- Begin LCocx98.LCocx LCocx1
- Left = 240
- Top = 3240
- _ExtentX = 656
- _ExtentY = 656
- End
- Begin VB.CommandButton cmdSend
- Caption = "&Send"
- Height = 372
- Left = 240
- TabIndex = 9
- Top = 2640
- Width = 1212
- End
- Begin VB.TextBox txtEmailServer
- BorderStyle = 0 'None
- Height = 300
- Left = 240
- TabIndex = 8
- Text = "mail.yourserver.com"
- Top = 120
- Width = 1572
- End
- Begin VB.TextBox txtFromName
- BorderStyle = 0 'None
- Height = 300
- Left = 240
- TabIndex = 7
- Text = "Sender's Name"
- Top = 600
- Width = 1572
- End
- Begin VB.TextBox txtFromEmail
- BorderStyle = 0 'None
- Height = 300
- Left = 1920
- TabIndex = 6
- Text = "sender@senderemail.com"
- Top = 600
- Width = 1812
- End
- Begin VB.TextBox txtToEmail
- BorderStyle = 0 'None
- Height = 300
- Left = 1920
- TabIndex = 5
- Text = "service@send-a-teddy.com"
- Top = 1080
- Width = 1812
- End
- Begin VB.TextBox txtSubject
- BorderStyle = 0 'None
- Height = 300
- Left = 240
- TabIndex = 4
- Text = "Subject"
- Top = 1560
- Width = 1572
- End
- Begin VB.TextBox txtEmailBody
- BorderStyle = 0 'None
- Height = 2772
- Left = 3840
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 3
- Text = "Emailfrm.frx":0000
- Top = 120
- Width = 4092
- End
- Begin VB.TextBox txtToName
- BorderStyle = 0 'None
- Height = 300
- Left = 240
- TabIndex = 2
- Text = "Recipient's Name"
- Top = 1080
- Width = 1572
- End
- Begin VB.TextBox txtResponse
- BorderStyle = 0 'None
- Height = 1692
- Left = 240
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 1
- Top = 3720
- Width = 7692
- End
- Begin VB.CommandButton cmdstop
- Caption = "S&top"
- Height = 372
- Left = 1920
- TabIndex = 0
- Top = 2640
- Width = 1212
- End
- Begin VB.Label lblstatus
- AutoSize = -1 'True
- Caption = "Status"
- Height = 192
- Left = 3840
- TabIndex = 10
- Top = 3000
- Width = 444
- End
- Attribute VB_Name = "Email"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdstop_Click()
- LCocx1.Cancelflag = True
- End Sub
- Private Sub cmdSend_Click()
- ret = LCocx1.SendEmail(txtEmailServer, txtFromName, txtFromEmail, txtToName, txtToEmail, txtSubject, txtEmailBody, "")
- If ret Then lblstatus = "Mail Sent" Else lblstatus = "Mail not Sent"
- End Sub
- Sub LCocx1_SendEmailResponse(SendEmailResponse As String)
- 'this is the response from the mail server
- txtResponse = txtResponse & SendEmailResponse
- End Sub
- Sub LCocx1_SendEmailStatus(SendEmailStatus As String)
- 'This is the status of the send email process
- lblstatus = SendEmailStatus
- End Sub
-