Patch level : 12.00 1368
Files correlati : xvaga.dll xwsmtp.dll ba0100m.msk sc0.exe sc2100b.msk sc2400b.msk Commento: Invio estratti conti e solleciti via mail
This commit is contained in:
parent
a8c43a2191
commit
d63fe98078
@ -981,9 +981,22 @@ bool send_mail(TToken_string & to, TToken_string & cc, TToken_string & ccn,
|
|||||||
if (!(flags & 0x1) && to.empty_items() && cc.empty_items() && ccn.empty_items())
|
if (!(flags & 0x1) && to.empty_items() && cc.empty_items() && ccn.empty_items())
|
||||||
flags |= 0x1; // Forza UI in assenza di destinatari
|
flags |= 0x1; // Forza UI in assenza di destinatari
|
||||||
|
|
||||||
static bool usePower = ini_get_bool(CONFIG_USER, "Mail", "Powershell");
|
static int type = ini_get_int(CONFIG_USER, "Mail", "Type");
|
||||||
|
bool ok = true;
|
||||||
|
|
||||||
bool ok = (usePower ? xvt_powermail_send(to, cc, ccn, subj, text, attachment, flags, user()) :
|
switch (type)
|
||||||
xvt_mail_send(to, cc, ccn, subj, text, attachment, flags)) != 0;
|
{
|
||||||
return ok;
|
case 0:
|
||||||
|
ok = xvt_mail_send(to, cc, ccn, subj, text, attachment, flags);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
ok = xvt_powermail_send(to, cc, ccn, subj, text, attachment, flags, user());
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
ok = xvt_wx_mail_send(to, cc, ccn, subj, text, attachment, flags);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return ok;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user