(param)
| 4221 | } |
| 4222 | |
| 4223 | export const mailTemplate = (param) => { |
| 4224 | const appName = "OpenSign™"; |
| 4225 | const logo = `<div style='padding:10px'><img src='https://qikinnovation.ams3.digitaloceanspaces.com/logo.png' height='50' /></div>`; |
| 4226 | |
| 4227 | const subject = `${param.senderName} has requested you to sign "${param.title}"`; |
| 4228 | const body = |
| 4229 | "<html><head><meta http-equiv='Content-Type' content='text/html;charset=UTF-8' /></head><body><div style='background-color:#f5f5f5;padding:20px'><div style='background:white;padding-bottom:20px'>" + |
| 4230 | logo + |
| 4231 | `<div style='padding:2px;font-family:system-ui;background-color:${themeColor}'><p style='font-size:20px;font-weight:400;color:white;padding-left:20px'>Digital Signature Request</p></div><div><p style='padding:20px;font-size:14px;margin-bottom:10px'>` + |
| 4232 | param.senderName + |
| 4233 | " has requested you to review and sign <strong>" + |
| 4234 | param.title + |
| 4235 | "</strong>.</p><div style='padding: 5px 0px 5px 25px;display:flex;flex-direction:row;justify-content:space-around'><table><tr><td style='font-weight:bold;font-family:sans-serif;font-size:15px'>Sender</td><td></td><td style='color:#626363;font-weight:bold'>" + |
| 4236 | param.senderMail + |
| 4237 | "</td></tr><tr><td style='font-weight:bold;font-family:sans-serif;font-size:15px'>Organization</td><td></td><td style='color:#626363;font-weight:bold'> " + |
| 4238 | param.organization + |
| 4239 | "</td></tr><tr><td style='font-weight:bold;font-family:sans-serif;font-size:15px'>Expires on</td><td></td><td style='color:#626363;font-weight:bold'>" + |
| 4240 | param.localExpireDate + |
| 4241 | "</td></tr><tr><td style='font-weight:bold;font-family:sans-serif;font-size:15px'>Note</td><td></td><td style='color:#626363;font-weight:bold'>" + |
| 4242 | param.note + |
| 4243 | "</td></tr><tr><td></td><td></td></tr></table></div> <div style='margin-left:70px'><a target=_blank href=" + |
| 4244 | param.signingUrl + |
| 4245 | "><button style='padding:12px;background-color:#d46b0f;color:white;border:0px;font-weight:bold;margin-top:30px'>Sign here</button></a></div><div style='display:flex;justify-content:center;margin-top:10px'></div></div></div><div><p> This is an automated email from " + |
| 4246 | appName + |
| 4247 | ". For any queries regarding this email, please contact the sender " + |
| 4248 | param.senderMail + |
| 4249 | " directly.</p></div></div></body></html> "; |
| 4250 | return { subject, body }; |
| 4251 | }; |
| 4252 | |
| 4253 | export function formatDateTime(date, dateFormat, timeZone, is12Hour) { |
| 4254 | const zonedDate = toZonedTime(date, timeZone); // Convert date to the given timezone |
no outgoing calls
no test coverage detected