multiple receivers ?

vb6 Greece
  • 12 years ago

    hallo my friends.

    I need some help here.

    How can i send email with multiple receivers ? i work with code

     

    With MAPIMessages1

    .AddressCaption = USER
      .SessionID = MAPISession1.SessionID
      .Compose
      .RecipDisplayName = "es: Microsoft Outlook"
      .MsgSubject = "test"

      .MsgNoteText = " test "
      .AttachmentIndex = 0
               .AttachmentPosition = 0
               .AttachmentPathName = namefile
               .AttachmentIndex = 1
               .AttachmentPosition = 1
               .AttachmentPathName = namefile1
     
      .RecipAddress = "[email protected]"
      .Send 'True
     
      MAPISession1.SignOff
     
     End With

  • 12 years ago

    Hi,
    Try

        Dim MapiRecipient As Object


            With MapiMessage
                Set MapiRecipient = MapiMessage.Recipients.Add(sName1)
                MapiRecipient.Type = mapiTo
                Set MapiRecipient = MapiMessage.Recipients.Add(sName2)
                MapiRecipient.Type = mapiTo

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Owning a computer without programming is like having a kitchen and using only the microwave oven” - Charles Petzold