Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro code to auto-email with attachments for gmail use
Message
De
12/02/2009 09:59:52
Freddie Rodrigues
Bitrun Business Solutions
Mumbai, Inde
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01373553
Message ID:
01381242
Vues:
51
Thanks Sergey,

I was stuck at the attachments, since there was no support for: ALINES(laList, This.cAttachment, [,], [;])

I somehow managed to overide it with a little bit of code.
mcAttachment = This.cAttachment
mchrCnt = 1
do while .t.
 if ','$mcAttachment Or ';'$mcAttachment
  if inlist(substr(mcAttachment,mchrCnt,1),',',';')
   lcAttachment = FULLPATH(ALLTRIM(SUBSTR(mcAttachment,1,mchrCnt-1)))
   .AddAttachment(lcAttachment)
   mcAttachment = ALLTRIM(STRTRAN(mcAttachment,SUBSTR(mcAttachment,1,mchrCnt),''))
   mchrCnt = 1
  endif
  mchrCnt = mchrCnt + 1
 else
  lcAttachment = FULLPATH(ALLTRIM(mcAttachment))
  .AddAttachment(lcAttachment)
  exit
 endif
enddo
I was also stuck a the TRY, but temporarily managed as below.
 *TRY
   This.oMsg.Send()
*CATCH TO oErr
* This.AddOneError("SEND ERROR: ", oErr.ErrorNo, oErr.procedure, oErr.LineNo)
*ENDTRY
Helping hands are better than praying lips.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform