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


> > Hi,
> > I'am using CDO2000 Class to send e-mail by my VFP Proc.
> > It returns an error displayed here:
> >
> >
> >
> >
> > What could be the problem ?
> >
> > Thanks to all
> >
> > Daniele
>
> 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

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