fix synthas

This commit is contained in:
CHIEFSOFT\ameye
2024-10-03 09:24:54 -04:00
parent 181c9c4084
commit c0ba3f6a83
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
#include "vars.h"
long submit_cron_email(CVars in)
long submit_cron_email(CVars in);
long CronSendMail(CVars in, CVars &out);
#endif
+9 -4
View File
@@ -640,7 +640,7 @@ long account_email(long mailtype, CVars in, CVars &out) {
long job_email(long mailtype, CVars in, CVars &out) {
logfmt(logINFO, "job_email()");
CVars x, y, z;
CVars x, y, z, ml;
C_CGI_Form form("", "");
int c=0;
CGIList * inv_list = new CGIList(&form, "inv_items");
@@ -845,9 +845,14 @@ long job_email(long mailtype, CVars in, CVars &out) {
" WHERE o.id = %lu", in["offer_id"].Long())) {
vars2form(x, form);
vars2form(yr, form);
form.LetStr("subject", "New Job Offer Received");
form.LetStr("email", x["email"].c_str());
form.Email("JOB/job_offer_invidual.mailfile");
// form.LetStr("subject", "New Job Offer Received");
// form.LetStr("email", x["email"].c_str());
// form.Email("JOB/job_offer_invidual.mailfile");
ml["action"] = JOBS_INDIVIDUAL_OFFER_MAIL; ml["action"].set_valid( true );
ml["topic"] = "JOBS_INDIVIDUAL_OFFER_MAIL"; ml["topic"].set_valid( true );
ml["offer_id"] = in["offer_id"]; ml["offer_id"].set_valid( true );
submit_cron_email(ml);
}
break;