Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email freezing in application using Mapi Controls

Status
Not open for further replies.

kprog

Programmer
Jul 21, 2003
13
0
0
CA
I have an issue with the email freezing the application. The users have to ctrl-alt-delete to get out of it but it doesn't happen all of the time. I have attached the code used in the application. Is there any way to prevent it from freezing the program?

MAPISession1.LogonUI = True
MAPISession1.SignOn
With MAPMess
.SessionID = MAPISession1.SessionID
.Compose
.RecipAddress = GetEmail
.ResolveName
.MsgSubject = message

Index = 0
Set fldr = fso.GetFolder("C:\Files\"
For Each fle In fldr.Files
.AttachmentIndex = Index
.AttachmentPathName = "c:\Files\" & fle.Name
Index = Index + 1
Next fle

.Send
End With
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top