diff --git a/src/include/spotlite.cpp b/src/include/spotlite.cpp index 6468a5d8f..31fb44c2f 100755 --- a/src/include/spotlite.cpp +++ b/src/include/spotlite.cpp @@ -112,6 +112,8 @@ bool spotlite_send_mail(const TFilename& pdf) subj.cut(0) << TR("Invio di ") << pdf.name(); if (!(flags & 0x1) && to.empty_items() && cc.empty_items() && ccn.empty_items()) flags |= 0x1; // Forza UI in assenza di destinatari - ok = xvt_mail_send(to, cc, ccn, subj, text, attach, flags) != 0; + static bool usePower = ini_get_bool(CONFIG_USER, "Mail", "Powershell"); + ok = (usePower ? xvt_powermail_send(to, cc, ccn, subj, text, attach, flags, user()) : + xvt_mail_send(to, cc, ccn, subj, text, attach, flags)) != 0; return ok; }