Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Warning

Status
Not open for further replies.

DChalom

Programmer
Jun 8, 2002
59
US
How do you turn off the outlook warning that you are accessing Outlook through FoxPro?

Dorian C. Chalom
 

A quick look at faq184-1856 and faq184-1156 might help you.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hello Dorian.

This problem is caused by the Draconian Security Patch from H*ll which was installed with Office 2000 SP2 and later. There are a couple of ways to get around it:

1. Download “Outlook Redemption", a DLL written by Dmitry Streblechenko, a Microsoft Outlook MVP, which implements the Extended MAPI interfaces to Outlook. It is available for download at and is free unless you are distributing it in commercial software, in which case it costs $199.99.

2. Download “Express Click Yes” at It comes with Visual FoxPro sample code and it is free.




Marcia G. Akins
 
Dorian

And to add to Marcia's suggestions

3. Don't use Outlook. There are other methods of sending e-mails through CDO, SMTP etc...

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
I want to use Outlook to give the user the option of saving the original emails in Outlook. But funny you should bring this up, I also want to include a way they can use this program with POP3 directly, thus bypassing Outlook.

Dorian C. Chalom
 
Dorian

If you look at faq184-1769, the portion titled "Sending a simple message (no attachement)", show you how to use CDO to send a message with a parameter to permit the message to be saved in the Sent Items folder.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
I need more then to save it in the sent folder of Outlook. I need to be able to create a folder for it if one does not already exist, and then save the email to that folder.



Dorian C. Chalom
 
Dorian

I need more then to save it in the sent folder of Outlook. I need to be able to create a folder for it if one does not already exist, and then save the email to that folder.

Then I see a few options.

[ol][li]Remove the security patch the pops up the warning message. This isn't a VFP issue, but their are discussions on the Net about this option, as VFP automation of Outlook isn't the only platform that encounters this problem.[/li]
[li]Another option is to downgrade Outlook, to the point prior to the patch. This is tricky with the automatic updates.[/li]

[li]Use the suggestions above to bypass the warning messages.[/li]

[li]It is possible to access the Outlook folders using CDO.[/li][/ol]


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Please point me in the direction of CDO....

Dorian C. Chalom
 
The InfoStore Object is read only and does not allow you to create folders, something I will need to be able to do.

Dorian C. Chalom
 
The InfoStore Object is read only and does not allow you to create folders, something I will need to be able to do.

InfoStore is one step too high in the hierarchy; you need to go down one step to the RootFolder level. That will allow you to create a folder.

Code:
oSession = CreateObject("MAPI.Session")
oSession.logon()
oInfo=oSession.GetInfoStore()
oNewFolder=oInfo.RootFolder
oNewFolder.Folders.add('my new folder')

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top