fix email send

This commit is contained in:
CHIEFSOFT\ameye
2024-11-23 12:10:29 -05:00
parent 10b0fd1d8d
commit ca3ab4f944
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ long promo_email(long mailtype, CVars in, CVars &out){
case WRB_CRONJOB_PROCESS_PROMO:
vars2form(in, form);
form.LetStr("email", out["email"]);
form.LetStr("email", in["email"]);
form.Email("PROMO/promo_alert.mailfile");
break;
}
+10 -2
View File
@@ -218,7 +218,10 @@ long RefreshPromoActivities(CVars in, CVars &out){
resF = pgsql_query("SELECT status FROM members_pending where LOWER(username)= LOWER('%s')", rec["email"].c_str());
if (resF != NULL && pgsql_num_rows(resF) > 0) {
pgsql_query("UPDATE promo_member SET updated = now(), status=2 WHERE id = %lu ", rec["id"].Long()); // mo
RegisterPromoAction(rec);
CVars yp;
yp["category"] ="SIGNUP";
yp["description"] = "Sign up was started";
RegisterPromoAction(yp);
}
}
}
@@ -278,7 +281,12 @@ long RegisterPromoPoint(CVars in){
RegisterPromoAction(in);
CVars yp;
yp["category"] ="SIGNUP_POINT";
yp["description"] = "Sign up was completed";
RegisterPromoAction(yp);
return 0;
}