Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending an email after i push the save button from a cla
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00742877
Message ID:
00742961
Views:
13
Edgar,
The class code for wizbtns can be modified, but I would suggest against it. The class does so many things that it should only be modified with a thorough understanding of what is going on inside.
A better alternative is to add the email code into your wizbtn code on your form. For example,
In ButtonSet1.cmdADD.Click event:

=dodefault() &&This runs all the wizbtn code
if this.parent.editmode && Checks if this is a SAVE or an ADD

&&It's a SAVE so Email it


endif

As to your next question,
there are many email samples out there, including the Samples directory of VFP. I think it's called "sendmail"
Also there are several MAPI mail classes/routines in the downloads area here.
Hope this helps.

Randy W Fogg
BDK Technologies






>>Hello, i have two doubts.
>>I have a class in a form, the class is wizbtns where i choose the
>>picsbtns, well, i need when i save a record send an email automatically,
>>but how i do this? if the class can not be modified from the code.

>>- and the second one, where can i find the code to send the email?

>>thanks for the support.
Previous
Reply
Map
View

Click here to load this message in the networking platform