Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dispaying emails in Outlook
Message
De
20/10/2002 21:23:49
 
 
À
20/10/2002 11:09:13
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00713248
Message ID:
00713380
Vues:
29
Hi Alan.

But wouldn't that automatically send the emails?

That depends < s >...It will respect what is set in Tools -> Options. If you have that set to send immediately, it will.

So if you want to continue to save the new e-mails as drafts, you can still do that by invoking the Save() method instead of the send() and modify the code as follows:
oNameSpace = oOutLook.GetNameSpace( 'MAPI' )
oDrafts = oNameSpace.GetDefaultFolder( 16 )
oDrafts.Display()
Then, when you are ready to really send the e-mails, (untested, just a wag) iterate thru the items in the drafts folder and invoke the send() method like so (untested and off the top of my head...)
FOR EACH loItem IN oDrafts.Items
  loItem.Send()
ENDFOR
BTW, will I be seeing you in Reading on November 1?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform