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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail controls

Status
Not open for further replies.

oconv

Programmer
Jan 17, 2002
25
ZA
Good day

Im having a strange problem - I use the MAPI controls , everything works fine , I can read the mail , get the subject , sender all that stuff , but if I call the AttachmentCount function a 0(zero) gets returned , this happens wiht all the messages (And YES , my messages do have attachments)

Have anybody ever had a problem like that - is it a bug or is it only me who is an idiot !!
 
oconv

post your code let's see how your using the function Gary Parker
Systems Support Analyst
 
mySession.DownLoadMail = True
mySession.UserName = "fdsf"
mySession.Password = "fsdfsd"
mySession.SignOn
mySession.DownLoadMail = True
myMessage.SessionID = mySession.SessionID
myMessage.FetchUnreadOnly = True

myMessage.Fetch

MsgCnt = myMessage.MsgCount - 1
If MsgCnt < 0 Then
MsgBox &quot;No new Messages&quot;
End If
For I = 0 To MsgCnt
myMessage.MsgIndex = I
SenderName = myMessage.MsgOrigDisplayName
Subject = myMessage.MsgSubject
TotalAttachments = myMessage.AttachmentCount
'TotalAttachments is 0
'could it be because of Windows or Outlook Express ?
Next I

'with all the nessasary varibles decalred
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top