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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only