child message

This commit is contained in:
CHIEFSOFT\ameye
2023-11-11 13:18:48 -05:00
parent cbfdc9d723
commit e7fb78daad
2 changed files with 8 additions and 10 deletions
+3 -6
View File
@@ -938,7 +938,9 @@ long project_email(long mailtype, CVars in, CVars &out) {
" LEFT JOIN currency c ON c.country = js.country "
" WHERE j.id=%lu", contract_id);
load_db_record(out, "SELECT email AS client_email,firstname AS client_firstname FROM members WHERE id = %lu", out["client_id"].Long());
load_db_record(out, "SELECT CASE WHEN account_type='FULL' THEN email ELSE 'support+child@wrenchboard.com' END AS client_email,"
" firstname AS client_firstname,account_type"
" FROM members WHERE id = %lu", out["client_id"].Long());
out["alertemail"] = CfgReadChar("transnotif.contact");
CVars yr;
@@ -958,11 +960,6 @@ long project_email(long mailtype, CVars in, CVars &out) {
form.LetStr("email", out["client_email"].c_str());
form.Email("PROJ/contract_notifycomplete_c.mailfile");
/*
-rw-r--r--. 1 oameye dev 9374 May 19 20:07 contract_notifycomplete_c.mailfile
-rw-r--r--. 1 oameye dev 9374 May 19 20:07 contract_notifycomplete_m.mailfile
*/
break;
case CONTRACT_REQUEST_CANCEL: