General information
Category:
COM/DCOM and OLE Automation
Jeff - Thanks but it doesn't like omail.update - Gives an ole error "unknown name"
Gaylen
>You need to add
>
>omail.UPDATE
>omail.SEND
>
>to the end of your code before you release omail and oOUTLOOK object's
>
>
>>I am using the following code to email from within my application.
>>
>>oOUTLOOK= createobject('outlook.application')
>> omail=oOUTLOOK.createitem(0)
>> omail.recipients.add('xxx@hotmail.com')
>> omail.recipients.add('xxxx@hotmail.com')
>> omail.subject = "Subject"
>> oAttachment = omail.attachments
>> oAttachment.add(filename)
>> omail.body = "body "
>> omail.display
>> Release omail
>> oOUTLOOK = .null.
>> Release oOUTLOOK
>>
>>
>>The email is sent when they click on send however the email does not appear in the sent item listing.
>>
>>Is there any way to get the messages to appear in sent mail or is there some way programatically that will triggers a message back to sender that the email has been received?
>>
>>This application will go to over 200 locations supposedly all running outlook 2000 and it would be nice to let the user know that the email was sent.
>>
>>Thanks in advance
>>Gaylen Jungling
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