Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
E-mail through outlook (again?)
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00253587
Message ID:
00253779
Views:
25
>>> Bruce is correct, Send(1) or Send(.T.) will do what you want.
>>
>>Thanks for the response guys. When I use Send(1) or Send(.T.) I get an error "OLE error: Invalid number of parameters." Here's the code:
>>
>>oOutLookObject = CREATEOBJECT('Outlook.Application')
>>oEmailItem = oOutLookObject.CreateItem(0)
>>
>>with oEMailItem
>> .Body = 'Test from VFP'
>> .to = 'RobFerguson@swhorse.com'
>> .send(.T.) && Send(1) same error -- Send() works.
>>endwith
>>
>>Any suggestions?
>>
>>Also, do you know where there is some documentation regarding this? I have John Petersen's Foxtalk articles, which are great, but they only cover so much.
>>
>>Thanks again.
>>
>>Rob
>
>I'm afraid the Send(1) and Send(.T.) refer to MAPI, not Outlook.Application.

As I noted, I saw somewhere there are now 3 parameters, and the default has changed, I guess, from MAPI. Send() is obviously still viable with an Outlook.Application, though, else the Send() in his code wouldn't work, either...Josh might have the simplest method with Display, but Send should still work with some parameter changes, I think...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform