General discussion


Send email,VB 4 through Net Mess 4.7

By csaha ·
As you can see from the below code that I can open
up lstMissing list box names as a txt file and now I need to send this file to at least two people in principals office. Your help will be
highly apprecialted at Illinois Math and Science Academy.
Private Sub cmdCheckInventory_Click()

Dim sFileList As String
Dim bMatch As Boolean
Dim sTeacherInfo As String
Dim sSearch As String
Dim FileNum As Integer
Dim i As Integer
'Get list of all teachers teaching courses this TermID
'Populate list box with term/AY descriptions and select closest term.
Screen.MousePointer = vbHourglass

lstMissing.AddItem DataGB.rsTeachersWithClasses("Name") + "
" + DataGB.rsTeachersWithClasses("ID") FileNum = FreeFile
Open "C:\Name.txt" For Output As FileNum
For i = 0 To lstMissing.ListCount - 1
Write #FileNum, lstMissing.LIST(i)
Close FileNum
End If


Screen.MousePointer = vbNormal

Exit Sub

Select Case Err Case Else
End Select
End Sub

"How can I use VB command button to send an email using
netscape messanger with a file attachment automatically". My application
is written in VB4.
Thanks for all your help.
Chitrarekha Saha
Database Programmer/Administrator

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
Thread display: Collapse - | Expand +

All Comments

Collapse -

Send email,VB 4 through Net Mess 4.7

by Bill_H In reply to Send email,VB 4 through N ...

There are several components out on the market that will help you do this, and some of the best are free! The following link will take you to a site for AspEmail, which can be used with Visual Basic programs as well as Active Server Pages.

Another solution involves using MAPI, the Mail Application Programming interface. The following link points to an article discussing the use of MAPI, as well as a sample VB program.

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums