Patch level : 12.0 632

Files correlati     : xvaga
Commento            : Impostato il controllo sul flag di powershell per l'abilitazione delle email
This commit is contained in:
Mattia Tollari 2018-10-12 10:43:48 +02:00
parent 867557b25b
commit 8765046a03

View File

@ -50,6 +50,11 @@ static bool GetMailParams(wxString& smtp, wxString& port, wxString& user, wxStri
return !smtp.IsEmpty() && !pass.IsEmpty();
}
static bool has_power_mail()
{
return GetMailParam("Powershell") == "X";
}
short xvt_mail_installed()
{
short bInstalled = 0;
@ -58,7 +63,7 @@ short xvt_mail_installed()
SearchPath(NULL, _T("MAPI32.DLL"), NULL, 0, NULL, NULL) != 0)
bInstalled |= 0x1;
if (xvt_fsys_file_exists("servers/mailsend.exe"))
if (xvt_fsys_file_exists("servers/mailsend.exe") || has_power_mail())
{
wxString smtp, port, user, pass, from;
GetMailParams(smtp, port, user, pass, from);