fix email

This commit is contained in:
CHIEFSOFT\ameye
2023-12-06 21:37:52 -05:00
parent beeb15135c
commit f13f299059
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -158,6 +158,10 @@ long cron_email(long mailtype, CVars in, CVars &out) {
try {
CVars yr;
load_db_record(yr, "SELECT to_char(now(), 'yyyy') AS YYYY");
vars2form(yr, form);
switch (mailtype) {
@@ -221,7 +225,8 @@ long cron_email(long mailtype, CVars in, CVars &out) {
break;
case WRB_CRONJOB_PENDOFFER_ALERT:
vars2form(x, form);
vars2form(x, form); // need to remove
vars2form(in, form);
form.LetStr("email", in["email"].c_str());
form.Email("REMINDER/offer_pending_reminder.mailfile");
break;