ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: Objet OUTLOOK.APPLICATION   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

jeu. 20 décembre 2012, 03h09

JpG
France France

atoutfox.public.association

Re: Objet OUTLOOK.APPLICATION

Bonsoir Patrick.
Merci pour ta réponse.
J'ai eu entre temps la réponse qu'il me fallait par notre ami MIKE, toujours au top...
La voici si cela peut servir à quelqu'un.

*** Create your self different profiles (Control panel-mail) and switch between them.
#Define MAILITEM 0
#Define IMPORTANCENORMAL 1
 oOutlookObject=Createobject('outlook.application')
 oNameSpace=oOutlookObject.getNameSpace('mapi')
 oNameSpace.Logon('outlook2')
 oEmailItem = oOutlookObject.CreateItem(MAILITEM)
With oEmailItem
   .Recipients.Add('me@somewhere.com') && uses the Recipients collection
   .Subject = 'Automation sample'
   .Importance = IMPORTANCENORMAL
   .Body = 'This is easy!'
   .Send
Endwith
 oNameSpace.Logoff
Release oEmailItem
Release oOutlookObject
***MIKE GAGNON***


Personnellement, je ne connaissais par ce paramètre .logon(profil)
A+
JPG


Permalink : http://www.atoutfox.org/nntp.asp?ID=0000010425
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3