Here I sit all broken hearter because of all the time wasted on email with VB6. Can someone PLEASE help me! I found an email program written from someone here. It goes like this:
Private Sub Command1_Click()
MAPISession1.SignOn

With Me.MAPIMessages1

.SessionID = MAPISession1.SessionID

.MsgIndex = -1

.Compose

.MsgSubject = "Order"

.RecipType = mapToList

.RecipDisplayName = "Dan"

.RecipAddress = "[email protected]"

' SHOW THE ADDRESS BOOK WITH THE SELECTED RECIPIENT(S)

' 0=NO EDIT FIELDS, 1=TO, 2=(TO AND CC), 3=(TO, CC AND BLIND CC),
' 4=ONLY THOSE SUPPORTED BY MESSAGING SYSTEM WILL BE SHOWN

.AddressEditFieldCount = 1

.MsgNoteText = "Your order is being sent"

' ADD ATTACHMENT FILE IF THE LABEL CONTAINS A SELECTED FILE

.AttachmentPosition = 0

.AttachmentName = "dan.txt"

.AttachmentPathName = "c:\products\dan.txt"

.AttachmentType = mapEOLE

' SEND THE EMAIL

.Send

End With

MAPISession1.SignOff

End Sub
The problem is, isn't mapi suppose to use the client's default mail program? Works great if you have outlook express on your computer, but what if you don't? It works up to the point of the attachment and then errors out saying that it can't find the attachment. Please respond.
Dan