Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Julio Laborin
  Where is Julio Laborin?
 Ciudad Juarez
 Mexico
 Julio Laborin
 To: Cesar
  Where is Cesar?
 
 Brazil
 Cesar
 Tags
Subject: RE: Foxypreviewer Mail Issues
Thread ID: 395935 Message ID: 395946 # Views: 45 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Foxite Downloads
Date: Tuesday, January 21, 2014 6:08:07 PM         
   


> Hola Julio,
>
> Sorry buddy, but I can't even start reading knowing that you don't have the latest release.
> Please update to the latest release and let me know if you still have difficulties
>
> Regards
>
> Cesar
>
>
>
> > Hi everyone, doing some tests with Foxypreviewer mail (v299z1).
> >
> > This is my code, It works fine as it is :
> >
> >
> >
> > TRY
> >   USE EMPLOYEE IN O
> >   SET PROCEDURE TO LOCFILE("FoxyPreviewer.App") ADDITIVE 
> >   LOCAL loReport AS "PreviewHelper" OF "FoxyPreviewer.Prg" 
> >   loReport = CREATEOBJECT("PreviewHelper") 
> >   WITH loReport as ReportHelper 
> >     .AddReport("C:\Reports\testcfdi.frx" , "NODIALOG")  
> >     .cDestFile      = "C:\Reports\testcfdi.pdf" && Dont want to attach this file
> >     .lAutoSendMail  = .T.
> >     .lEmailAuto     = .T.   
> >     .cEmailType     = "PDF" 
> >     .nEmailMode     = 3     
> >     .cEmailTo       = "julio@siasa.com"
> >     .cSMTPServer    = "142.174.71.165"
> >     .cEmailFrom     = "julio@siasa.com	"
> >     .cEmailSubject  = "Email Test"
> >     .nSMTPPort      = 587
> >     .lSMTPUseSSL    = .F.
> >     .cSMTPUserName  = "julio@siasa.com"
> >     .cSMTPPassword  = "Password" 
> >     .lReadReceipt   = .F.
> >     .lPriority      = .T.
> >     .lSilent		= .T.
> >     .cAttachments   =   "C:\Users\owner\Documents\SNO990602LJ9_R1592.xml" && How to add more files ?
> >     .cEmailBody = "Testing CDO Mail using Foxypreviewer"
> >     .RunReport() 
> >   ENDWITH
> >   IF loReport.LEMAILED 
> >     MESSAGEBOX("It works !!",64,"",1000)
> >   ELSE
> >     MESSAGEBOX("Doesnt work.... ",48,"",1000)
> >   ENDIF
> > CATCH TO oerr
> >   MESSAGEBOX(oerr.message)
> > FINALLY
> >   CLOSE ALL
> > ENDTRY
> > 

> >
> >
> > 2 things I want to do :
> >
> > 1.- I dont want to attach the generated PDF ( testcfdi.pdf ), I want to use a PDF that already exists, already tried .lEmailAuto=.F., but didnt work.
> > 2.- I need to attach more than one file, tried using commas as separator, but got loReport.LEMAILED=.F.
> >
> >
> > Hope you can help.
> >
> > Thanks in advance
>
>
>
> Regards,
>
> m.Cesar
> My Blog


Thanks Cesar , now I have v299z30 . I replaced Foxypreviewer.app on my working directory, still getting the same results.

ENTIRE THREAD

Foxypreviewer Mail Issues Posted by Julio Laborin @ 1/21/2014 4:52:22 PM
RE: Foxypreviewer Mail Issues Posted by Cesar @ 1/21/2014 5:18:13 PM
RE: Foxypreviewer Mail Issues Posted by Julio Laborin @ 1/21/2014 6:08:07 PM
RE: Foxypreviewer Mail Issues Posted by Cesar @ 1/21/2014 6:39:51 PM
RE: Foxypreviewer Mail Issues Posted by Julio Laborin @ 1/21/2014 11:09:00 PM