General information
Category:
COM/DCOM and 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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only