Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 To: Daniele Riefoli
  Where is Daniele Riefoli?
 MILAN
 Italy
 Daniele Riefoli
 Tags
Subject: RE: Error using CDO2000
Thread ID: 289224 Message ID: 289237 # Views: 37 # Ratings: 0
Version: Visual FoxPro 8 Category: Windows 7 and VFP
Date: Wednesday, December 29, 2010 7:01:41 PM         
   


> >
> > Can you post the code you are using?
> >
> > Mike Gagnon
> > Refox XI +(English version)
>
>
>
> Of Course
>
> loMail = NEWOBJECT("Cdo2000", "Cdo2000.fxp")
>
> WITH loMail
> .cServer = "smtp.fastwebnet.it"
> .nServerPort = 25
> .lUseSSL = p_mailssl && .f.
>
> .nAuthenticate = 1 && cdoBasic
> .cUserName = ALLTRIM(p_mailuse)
> .cPassword = ALLTRIM(p_mailpwd)
>
> .cFrom = .cUserName
>
> .cTo = alltrim(pazienti.mail) && "somebody@otherdomain.com, somebodyelse@otherdomain.com"
>
> .cSubject = "Invio copia Certificato malattia"
>
> .cTextBody ="Buongiorno,"+CHR(13)+CHR(10)+"Le invio, in allegato, la copia del certificato di Malattia On-Line"+CHR(13)+CHR(10)+CHR(13)+CHR(10)+"Cordiali Saluti"+CHR(13)+CHR(10)+"Dott. "+alltrim(p_medico)
>
> .cAttachment = g_pdf+"cert_mal_lavoratore.pdf" && "myreport.pdf, myspreadsheet.xls"
> ENDWITH
>
> thanks Mike

It would be nice to know what is in the cdo2000.fxp program.
Has it ever worked for you?

Mike Gagnon
Refox XI +(English version)

ENTIRE THREAD

Error using CDO2000 Posted by Daniele Riefoli @ 12/29/2010 5:08:12 PM
RE: Error using CDO2000 Posted by Mike Gagnon @ 12/29/2010 5:59:32 PM
RE: Error using CDO2000 Posted by Daniele Riefoli @ 12/29/2010 6:37:20 PM
RE: Error using CDO2000 Posted by Mike Gagnon @ 12/29/2010 7:01:41 PM
RE: Error using CDO2000 Posted by Daniele Riefoli @ 12/29/2010 7:51:56 PM
RE: Error using CDO2000 Posted by Mike Gagnon @ 12/30/2010 2:11:12 PM