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
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