outlook code

Discussion in 'Programming' started by ginotaleban, Mar 10, 2008.

  1. ginotaleban

    ginotaleban New Member

    Joined:
    Mar 10, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi everyone

    i've a simple macro to send mail:

    Code:
    Sub InviaEmail()
           Dim AppOut As Outlook.Application
           Set AppOut = New Outlook.Application
           Set NewMail = AppOut.CreateItem(olMailItem)
           NewMail.To = "INDIRIZZO"
           NewMail.CC = "INDIRIZZO"
           NewMail.BCC = "INDIRIZZO"
           NewMail.Subject = "OGGETTO EMAIL"
           NewMail.Body = " TESTO MESSAGGIO"
           NewMail.Attachments.Add "C:\ALLEGATO.TXT"
           NewMail.Send
           NewMail.Display
    End Sub
    
    ...i need to get the "NewMail.To" value directly from my contact folder in my personal folder ( exsatly is a group list named Clienti )

    there is someone who can help me?
     
    Last edited by a moderator: Mar 10, 2008

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice