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
 Tags
Subject: Foxypreviewer Mail Issues
Thread ID: 395935 Message ID: 395935 # Views: 49 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Foxite Downloads
Date: Tuesday, January 21, 2014 4:52:22 PM         
   


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

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