Subject Re: Sending email
From AGOSTINHO <Agostinhoteixeira@yahoo.com>
Date Sun, 14 Apr 2024 00:52:30 -0400
Newsgroups dbase.getting-started

Thank you KenMayer  for your assistance.
I think I cannot successfully email.register()
That's  why I get the error message : Error:  OLE Unable to create object.

email = new mv_mail()
vdbpath="c:\users\home_pc\desktop\dbasetutorial"
set procedure to mv_mail.cc
//oleautoclient not yet registered or unable to to create ...
if email.errorcode = 371 or email.errorcode = 370
   //? "Not registered"
        success = email.register()
else
   //? "Already registered!"
   *success = true
         success = email.register(vdbPath, true)
endif
* success = email.register(vdbPath, true)
if not success
        ? email.errortext // registration failed
        return
endif


Ken Mayer Wrote:

> On 4/13/2024 8:40 PM, AGOSTINHO wrote:
> > When I try this in the  command window
> > vdbPath=mv_mail.cc
> > I get a error alert window:  Error: Variable undefined: MV_MAIL
>
>
> What is the path to the FOLDER the file is in??
>
> C:\dUFLP\vdbmail
>
> For example. Not the actual name of the .cc file, but the path to the
> FOLDER??
>
> vdbpath = "c:\dUFLP\vdbmail"  // using the example path above
>
> Ken
>
> --
> *Ken Mayer*
> Ken's dBASE Page: http://www.goldenstag.net/dbase
> The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
> dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
> dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
> dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
> dBASE DOS to Windows Tutorial:
> http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm
>