Information générale
Catégorie:
COM/DCOM et OLE Automation
Marcia, many thanks for the reply.
>>Replace this:
.Save()
with this;
.Send()<<
But wouldn't that automatically send the emails? What I would like to do is to have a quick look at the generated emails in the Outbox before sending the batch in one go.
I have just tried the following...
* --------------------
oNameSpace = oOutLook.GetNameSpace( 'MAPI' )
oOutbox = oNameSpace.GetDefaultFolder( 4 )
Email generating code goes here
oOutbox.Display()
* -------------------
The outbox is displayed correctly, but it's empty - the emails are still being sent to the Drafts folder. Can I direct the emails to oOutbox, perhaps in the oitem = oOutlook.CreateItem(0) line?
TIA
Alan
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement