From dc7dbbdbfce62e519e0db851b0343efb61b1752c Mon Sep 17 00:00:00 2001 From: Simone Palacino Date: Mon, 29 Apr 2019 11:44:21 +0200 Subject: [PATCH] =?UTF-8?q?Patch=20level=20=20=20=20=20=20=20=20=20:=2012.?= =?UTF-8?q?0=20778=20Files=20correlati=20=20=20=20=20:=20fp1200=20Commento?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20:=20-=20Corretto=20invio=20?= =?UTF-8?q?mail=20mancata=20consegna=20quando=20pdf=20gi=C3=A0=20esistente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fp/fp1200.cpp | 4 ++++ src/fp/fplib03.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fp/fp1200.cpp b/src/fp/fp1200.cpp index eba58207d..919bf382a 100644 --- a/src/fp/fp1200.cpp +++ b/src/fp/fp1200.cpp @@ -395,7 +395,11 @@ void TMancati_app::main_loop() const TFixed_string codnum(riga->get(mask.sfield(F_DOCS).cid2index(S_CODNUM))); const TFixed_string tipodoc(riga->get(mask.sfield(F_DOCS).cid2index(S_TIPODOC))); const long codcf = riga->get_long(mask.sfield(F_DOCS).cid2index(S_CLIENTE)); +#ifdef DBG + const TString mail = "spalacino@sirio-is.it"; +#else const TString mail = riga->get(mask.sfield(F_DOCS).cid2index(S_DOCMAIL)); +#endif bool accord = TString(riga->get(mask.sfield(F_DOCS).cid2index(S_BYMAIL))) == "X"; TString ragsoc = riga->get(mask.sfield(F_DOCS).cid2index(S_RAGSOC)); bool sent = TString(riga->get(mask.sfield(F_DOCS).cid2index(S_SENT))) == "X"; diff --git a/src/fp/fplib03.cpp b/src/fp/fplib03.cpp index 1e4d320b6..29e0f6bd1 100644 --- a/src/fp/fplib03.cpp +++ b/src/fp/fplib03.cpp @@ -69,7 +69,7 @@ bool TFp_mail_sender::send(const TString& msg) const int pdf_exist = pdf.exist(); if (pdf_exist) - ok = spotlite_send_mail(pdf); // -> Invio mail con PDF già esistente + ok = spotlite_send_mail(pdf, msg); // -> Invio mail con PDF già esistente else if (genera_pdf()) // Genero pdf se non esiste già (in tempdir) { // Manda già un messaggio di errore generazione se fallisce la generazione TFilename newf_pdf; newf_pdf << _pdf_path << _pdf_name;