Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Familiar with Coate's MAPI class?
Message
From
03/03/2001 23:59:13
 
 
To
03/03/2001 21:35:18
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00481699
Message ID:
00481705
Views:
11
Hi Randy,

I think lcusername and pcpassword should be empty strings for a send, and from memory you need a subject.
If you are getting an OLE error, Outlook is not set up correctly, I think.

HTH

Geoff

>Hi. I am trying (programatically) to send a single e-mail using Nigel Coates e-mail class. Can anyone tell me why the code below does not work??
>
>* -------------------------------------------------------------------------------------------------------------------------------
>Local lcusername, lcpassword, lcrecipients, lcsubject, lcbodytext, lcattachments
>lcusername ='rjwald'
>lcpassword = 'buster'
>lcrecipients = '8503402@skytel.com'
>lcsubject = ''
>lcbodytext = 'statistics from end of day processing'
>lcattachments = ''
>SET CLASSLIB TO mapimail
>oObj = CREATEOBJECT("cusmapi")
>oObj.sendmail(lcusername, lcpassword, lcrecipients, lcsubject, lcbodytext, lcattachments)
>* ---------------------------------------------------------------------------------------------------------------------------------
>
>thanks, Randy
Previous
Reply
Map
View

Click here to load this message in the networking platform