I'm using VFP8 (testing in VFP9) to automate Outlook (via outlook
redemption). But before I try to send an email I need to know if the user
has setup a server for outlook yet or not. anyone know where I should start
looking for this info? Also if they did have a server setup and I create and
send a email how can I check if it was sent successfully?


--
John B

Re: Checking if outlook has been setup with a server, and if email s by DSummZZZ

DSummZZZ
Fri Dec 03 11:02:57 CST 2004

Well, you can't set up Outlook without giving it a server to act on, so by
simply attempting to create the Outlook instance from VFP you should know
if it is working:
oOutlook = CreateObject("Outlook.Application")

When you attempt to send it, as long as no error occurs, it should have
been sent. But you can always check the 'Sent Items' fold via VFP if
needed.

Here's a good example for using Outlook:
http://www.tek-tips.com/faqs.cfm?fid=766




Re: Checking if outlook has been setup with a server, and if email by screech_

screech_
Fri Dec 03 12:35:09 CST 2004

That is incorrect. On my deveoplment machine I have the Office XP version of
Outlook with no server setup, just a personal folder file and address book,
and I do not get an error when send is called. When I try seeing if send
returns anything the varible become .null., if a server is setup and the
message is sent, does send return anything other than .null.? Due to rules
on network at work my development computer can't be connected. And it takes
MONTHES to get approval to put software on a networked computer, can't wait
that long just to test something.

Was really hoping to be able to determine if a server is setup, only create
email if one is (Better yet, not enable the email option in the program). If
Send has a return value that would be faster that checking the sent folder,
which I'd shy away from unless there is a way of calling Send/Recieve and VPF
wait on the results of that before checking the folder.

The link is a good example of basic usage, which I've already done.

Thanks for the reply, look foward to more that may lead to a better solution.

John B.

"DSummZZZ" wrote:

> Well, you can't set up Outlook without giving it a server to act on, so by
> simply attempting to create the Outlook instance from VFP you should know
> if it is working:
> oOutlook = CreateObject("Outlook.Application")
>
> When you attempt to send it, as long as no error occurs, it should have
> been sent. But you can always check the 'Sent Items' fold via VFP if
> needed.
>
> Here's a good example for using Outlook:
> http://www.tek-tips.com/faqs.cfm?fid=766
>
>
>
>