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

sending multiple attachments using MAPI controls

Status
Not open for further replies.

scro11bar

Programmer
Oct 25, 2001
11
US
Hi,
I am trying to attach multiple files in one email message and send it to an email account. I can attach one file and send it but I have no idea I how to attach more than 1 file. I tried messing around with the .AttachmentIndex property but couldn't get it to work. Any help would be greatly appreciated. Thanks.

- G. Rush
 
Can you help me with getting one attachment attached to the email....I can't even get that to work. Thanks.
 
With frmMain.MAPIMessages1
.SessionID = frmMain.MAPISession1.SessionID
.MsgIndex = -1
.Compose
.MsgSubject = "Merge Data"
.RecipDisplayName = "peter@accuflight.com"
' .ResolveName

c = Space(20) & vbCrLf
c = c & "Message Sent " & Format(Now, "dd mmm yyyy") & " " & Format(Now, "hh mm")
.MsgNoteText = c

.AttachmentIndex = 0
.AttachmentPosition = 0
.AttachmentName = "" & cOutName & ".txm"
.AttachmentPathName = (cAppPath & "data\" & cOutName & ".txm")


.AttachmentIndex = 1
.AttachmentPosition = 1
.AttachmentName = "" & cOutName & ".gda"
.AttachmentPathName = (cAppPath & "data\" & cOutName & ".gda")

.Send True

End With Peter Meachem
peter@accuflight.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top