title: MAPI Control Multiple attachments
body: <p>I am trying to send an email with multiple attachments using the VB6 <code>MAPIMessages</code> control.</p>
  
  <p>1) I am able to use this control to send a single attachment but it displays an error saying "Attachment not found", if I try to send more than one file.</p>
  
  <p>2) I also need to suppress the warning message when I try to send an email</p>
  
  <p>Any ideas?</p>
  
  <p>Here's the code:</p>
  
  <pre><code>MAPISession1.SignOn
  
  MAPIMessages1.SessionID = MAPISession1.SessionID
  MAPIMessages1.Compose
  
  MAPIMessages1.RecipDisplayName = "abbid_siddiqui@hotmail.com"
  MAPIMessages1.MsgSubject = "MAPI subject with attachments"
  MAPIMessages1.MsgNoteText = "This is  atest"
  
  MAPIMessages1.AttachmentIndex = 0
  MAPIMessages1.AttachmentName = "test.csv"
  MAPIMessages1.AttachmentPathName = "C:\test.csv"
  
  MAPIMessages1.AttachmentIndex = 1
  MAPIMessages1.AttachmentName = "holidays_2013.xls"
  MAPIMessages1.AttachmentPathName = "E:\holidays_2013.xls"
  
  MAPIMessages1.ResolveName
  
  'Send the e-mail message to the Recipient
  MAPIMessages1.Send
  </code></pre>