From d7419ca71a08947de0e989b5d3f613eec8dbc1c7 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sun, 4 Sep 2022 15:29:51 -0400 Subject: [PATCH] fix --- .../email/JOB/job_offer_invidual.mailfile | 182 ++++++++---------- wrenchboard/src/shared_tool/email.cc | 11 +- 2 files changed, 92 insertions(+), 101 deletions(-) diff --git a/wrenchboard/email/JOB/job_offer_invidual.mailfile b/wrenchboard/email/JOB/job_offer_invidual.mailfile index c46ca62a..b87276f0 100644 --- a/wrenchboard/email/JOB/job_offer_invidual.mailfile +++ b/wrenchboard/email/JOB/job_offer_invidual.mailfile @@ -10,7 +10,7 @@ Subject: {{subject}} - {{title}} body {margin: 0; padding: 0; min-width: 100%!important;} img {height: auto;} .content {width: 100%; max-width: 600px;} - .header {padding: 40px 30px 20px 30px;} + .header {padding: 10px 30px 10px 30px;} .innerpadding {padding: 30px 30px 30px 30px;} .borderbottom {border-bottom: 1px solid #f2eeed;} .subhead {font-size: 12px; color: #ffffff; font-family: sans-serif; letter-spacing: 3px;} @@ -23,7 +23,8 @@ Subject: {{subject}} - {{title}} .footer {padding: 20px 30px 15px 30px;} .footercopy {font-family: sans-serif; font-size: 14px; color: #ffffff;} .footercopy a {color: #ffffff; text-decoration: underline;} - + .sect-text {font-weight: bold; } + .big-danger{ font-weight: bold; font-size: 18px; line-height: 20px; color:red;} @media only screen and (max-width: 550px), screen and (max-device-width: 550px) { body[yahoo] .hide {display: none!important;} body[yahoo] .buttonwrapper {background-color: transparent!important;} @@ -53,93 +54,76 @@ Subject: {{subject}} - {{title}} - + + + diff --git a/wrenchboard/src/shared_tool/email.cc b/wrenchboard/src/shared_tool/email.cc index 9dfa6f93..ec46d454 100644 --- a/wrenchboard/src/shared_tool/email.cc +++ b/wrenchboard/src/shared_tool/email.cc @@ -924,7 +924,7 @@ long test_email(CVars in, CVars &out) { form.LetStr("subject", "This is Test Email"); form.LetStr("email", in["email"].c_str()); form.Email("ALERT/template.mailfile"); -*/ + if (load_db_record(x, "SELECT o.*,to_char(o.expire, 'Day Mon dd, yyyy HH:MI AM') AS expire2,j.title,j.description,j.timeline_days,j.price FROM members_jobs_offer o LEFT JOIN members_jobs j ON j.id =o.job_id WHERE o.id = %lu AND o.status >0", in["offer_id"].Long())) { vars2form(x, form); if (load_db_record(y, "SELECT email,balance,firstname FROM members WHERE id = %lu", x["member_id"].Long())) { @@ -941,6 +941,15 @@ long test_email(CVars in, CVars &out) { form.Email("JOB/job_interest_client.mailfile"); } + } + ,to_char(now(), 'yyyy') AS YYYY + */ + logfmt(logINFO, "JOBS_INDIVIDUAL_OFFER_MAIL"); + if (load_db_record(x, "SELECT o.*,to_char(o.expire, 'Day Mon dd, yyyy HH:MI AM') AS expire2,j.title,j.description,j.timeline_days,j.price,to_char(now(), 'yyyy') AS YYYY FROM members_jobs_offer o LEFT JOIN members_jobs j ON j.id =o.job_id WHERE o.id = %lu", in["offer_id"].Long())) { + vars2form(x, form); + form.LetStr("subject", "Job Offer Recieved"); + form.LetStr("email", x["email"].c_str()); + form.Email("JOB/job_offer_invidual.mailfile"); } return 0;
- - - - -
- WrenchBoard -
- - - - - -
- - +
- -
- {{site_name}} + + WrenchBoard
+ {{site_trade_name}}
-
- +
- - - - - - - - -
- Dear {{email}}, -
-You have received a job offer from a {{site_name}} user with details below. + + + + + + - -
+ Hi, {{email}}, +
+ You have received a job offer from a {{site_name}} user with details below. -
-
- - - - - - - - -
- - - - - - + + + + + + + + + + - - - - - - - -
- Title - -{{title}} -
+ Please login into your account to accept this offer. +
+ Offer Expire : {{expire2}} +
- Offer ID - - {{offer_code}} +
+ + + + + + + + + + + + - - + +
+Title + +{{title}} +
+Offer ID + +{{offer_code}} +
Description @@ -148,7 +132,7 @@ You have received a job offer from a Duration @@ -157,49 +141,47 @@ You have received a job offer from a Price {{price}} Naira
- Detail + +Detail - {{job_description}} +{{job_description}} +
+
- Offer Expire - - {{expire2}} -
-

Please login into your account to accept this offer.

-
- +
+ + + + + +
+ + Apple + + + + Android + +
+
Please contact us at https://www.wrenchboard.com/contact if you have any question about this email. @@ -217,8 +199,8 @@ You have received a job offer from a
- ® {{site_name}} 2022
- You received this email because a user sent a job to you from {{site_name}}. If you get this email in error, please contact us. + ® {{site_name}} {{YYYY}}
+ You received this email because a user sent a job to you from {{site_name}}. If you get this email in error, please contact us.