View Attachment with MAPI message in Win98 ???? 
Author Message
 View Attachment with MAPI message in Win98 ????

  Dim Oggetto_Messaggio As String
  Dim i As Integer, Numero_Messaggi As Integer, Numero_Allegati As Long
  Dim Nome_Allegato1 As String, Nome_Allegato2 As String

  Me.MAPISess.UserName = "*"
  Me.MAPIMess.SessionID = Me.MAPISess.SessionID

  Numero_Messaggi = Me.MAPIMess.msgcount
  For i = 1 To Numero_Messaggi
    Me.MAPIMess.MsgIndex = i - 1
    Oggetto_Messaggio = Me.MAPIMess.msgsubject
    If Oggetto_Messaggio = Ricavo_Dato_Configurazione(OGGETTO_EMAIL) Then
      MsgBox Me.MAPIMess.msgid & Oggetto_Messaggio

  MsgBox Me.MAPIMess.attachmentcount   >>>> value alwais = 0

      Dim k As Integer
      For k = 0 To Me.MAPIMess.attachmentcount - 1
        Me.MAPIMess.AttachmentIndex = k
        Dim intLenFileName As Integer
        Dim intStrPos As Integer
        intLenFileName = Len(Me.MAPIMess.attachmentPathName)
        MsgBox intLenFileName
      Next k

      End If

  Next i

Mon, 01 Sep 2003 20:48:48 GMT  
 View Attachment with MAPI message in Win98 ????
Check the example VBMAIL.VBP provided with VB5.0 (I do not know about VB6.0)

Tue, 02 Sep 2003 17:21:59 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Mapi Messages control + Outlook Express = no attachments!

2. Resolving message attachments through MAPI

3. MAPI message and Attachment

4. Adding multiple attachments to a mapi message

5. MAPI Message control loses attachments details for Internet E-mail

6. Help! MAPI Message Control - Save Attachments

7. Reading Attachments in MAPI Message control

8. Downloading attachment from MAPI mail message

9. MAPI controls - mail message attachments

10. mapi message with attachment

11. View full attachment name in mail message

12. Q: Attachment: How to insert filename of attachment in message body


Powered by phpBB® Forum Software