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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement