mcintyak
asked on
Mozilla Thunderbird - Extracting Attachments from Emails
Microsoft MAPI Controls 6.0 Visual Basic 6 Mozilla Thunderbird 2.0.0.21
I am unable to extract email attachments using MAPI from the Thunderbird email client. The email appears without attachments ie AttachmentCount is zero. The code works when the email client is Microsoft Outlook. Even if I fudge the counter it still does not find the attachments. Any ideas why it does not work ?
Thanks in advance
Tony
I am unable to extract email attachments using MAPI from the Thunderbird email client. The email appears without attachments ie AttachmentCount is zero. The code works when the email client is Microsoft Outlook. Even if I fudge the counter it still does not find the attachments. Any ideas why it does not work ?
Thanks in advance
Tony
txtFrom.Text = MAPIMail.MsgOrigAddress
txtSubject.Text = MAPIMail.MsgSubject
txtMessage.Text = MAPIMail.MsgNoteText
'
lstAttachments.Clear
ReDim strPathNames(MAPIMail.AttachmentCount)
For ii = 0 To MAPIMail.AttachmentCount - 1
If MAPIMail.AttachmentType = mapData Then
MAPIMail.AttachmentIndex = ii
strPathNames(ii) = MAPIMail.AttachmentPathName
strFileName = fncDecodeFileName(strPathNames(ii), 3)
lstAttachments.AddItem (strFileName)
End If
Next ii
MAPIMail => MAPIMessages control instance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER