Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send Outlook Mail via VFP
Message
 
 
À
28/04/2000 14:56:10
Rich Lieblich
Infosys Technologies, Inc.
Fanwood, New Jersey, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00364632
Message ID:
00364890
Vues:
19
In addition to what others have said, you could create distribution lists to group people.

Go into the address book and choose File New Entry and then choose New Distribution List. As long as you add it to the Global Address Book everyone should have them.

Just a thought,
Rick

>I successfully used some code from a UT thread that will send an Outlook email message from VFP:
>
>Recipient="xyz@abc.com"
>MailSubject="Test of Email From Visual FoxPro"
>MailMsg="This is a test of sending EMAIL FROM VFP"
>MailObj=CreateObject("Outlook.Application")
>NameSpace=MailObj.GetNameSpace("MAPI")
>MailItem=MailObj.CreateItem(0)
>MailItem.Recipients.Add(Recipient)
>MailItem.Subject=MailSubject
>MailItem.Body=MailMsg
>MailItem.Send
>NameSpace.Logoff
>
>I want to use this code as the foundation for a little "Personnel Notification System" in my office. It will
>allow the user to send email and/or page a list of people that have been stored in a contact database.
>Some questions about using the Outlook client from within VFP:
>
>1. Recipient- is there another keyword to use to specify an Outlook distribution list?
>2. How do you repetitively send emails to individual addresses stored in the database- just do
> multiple .Add(Recipient) statements.... or is the CreateItem( ) method also needed?
>3. Rather than have to manually key in email addresses into my contact database, it would be nice to
> programatically access Outlook's Address Book and use the addresses retreived from Outlook
> to prime my contact database record... can I easily do this?
>4. Can anyone give me a URL that gives a clear explanation of the properties and methods I might need
> to use in this application?
>
>Thanks!....... Rich Lieblich
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform