Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email through Outlook by running a VFP application
Message
De
07/03/2007 02:01:41
Somesh Sahu
Cybage Software Pvt Ltd,
Pune, Inde
 
 
À
06/03/2007 02:31:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
01200936
Message ID:
01201354
Vues:
24
Hi,
Thanks for the reply.
I checked the link sent by you.
The below code is successfully working in VB.
***************************
set Session = CreateObject("Redemption.RDOSession")
Session.Logon

set Mail = Session.GetDefaultFolder(olFolderOutbox).Items.Add("IPM.Note")
Mail.Recipients.Add "eaters@lunch.com"
Mail.Subject = "Lunch anybody?"
Mail.Body = "Please open the message and click on one of the buttons" & vbCrLf & _

                    " (Chinese;Italian;Mexican;Don't care) on the toolbar" & vbCrLf & _

                   ''to indicate your lunch preference"
Mail.VotingOptions = "Chinese;Italian;Mexican;Don't care"
Mail.Send
***************************

But when i am converting and trying to run it in VFP 6, it is giving errors. Please check below the converted vfp code and error messages -
***************************
session = CreateObject("Redemption.RDOSession")
session.Logon

Mail = session.GetDefaultFolder(olFolderOutbox).Items.Add("IPM.Note") && gives error - Variable 'olFolderOutbox' is not found

Mail.Recipients.Add = "someshs@cybage.com"
Mail.Subject = "Lunch anybody?"
Mail.Body = " Test " 
Mail.VotingOptions = "Chinese;Italian;Mexican;Don't care"
Mail.Send

***************************
Please let me know the changes required in the code to run this in VFP 6.

Thanks once again,
Somesh Sahu

>>Hi,
>> In Outlook 2003 SP2, when I am running a VFP program that uses the Outlook object model to call the Send method to send an email, the Outlook displays a warning message. This warning message tells you that a program is trying to send mail on your behalf and asks if you want to allow the message to be sent. The warning message contains both a Yes and a No button.
>> If this Warning message can be avoided through code? Or is there any setting in the Outlook to Not display such warning messages?
>> If the mail is to be send to large number of contacts automatically through a program, then it is a problem for User as he will have to select Yes in the warning message many times.
>>Please help me on this.
>>Thanks in advance,
>>
>>Somesh Sahu
>
>Check http://www.dimastr.com/redemption/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform