blob: ccb20d0d5e919c1e37c6ee942274ea1ea9bae91b [file] [log] [blame]
matheusfillipef43dd962021-05-13 23:27:01 -03001<?php
Marc Kupietza3f3fdb2023-03-04 18:13:26 +01002$REGISTRATION_INFORMATION = "
3<h3>Registration information</h3>
4<p>
5<table style='border: 1px solid #e1e4e8; border-collapse: collapse; width: 100%;'>
6<tr>
7<td style='border: 1px solid #e1e4e8; padding: 6px 13px;'>
8<strong>Username</strong>
9</td>
10<td style='border: 1px solid #e1e4e8; padding: 6px 13px;'>
11{{username}}
12</td>
13</tr>
14<tr>
15<td style='border: 1px solid #e1e4e8; padding: 6px 13px;'>
16<strong>Name</strong>
17</td>
18<td style='border: 1px solid #e1e4e8; padding: 6px 13px;'>
19{{full_name}}
20</td>
21</tr>
22<tr>
23<td style='border: 1px solid #e1e4e8; padding: 6px 13px;'>
24<strong>Organization</strong>
25</td>
26<td style='border: 1px solid #e1e4e8; padding: 6px 13px;'>
27{{organization}}
28</td>
29</tr>
30<tr>
31<td style='border: 1px solid #e1e4e8; padding: 6px 13px;'>
32<strong>Email</strong>
33</td>
34<td style='border: 1px solid #e1e4e8; padding: 6px 13px;'>
35{{email}}
36</td>
37</tr>
38</table>
39</p>
40";
41
Marc Kupietz74376332023-03-06 07:06:45 +010042$WELCOME_TEMPLATE = (object)[
43 "subject" => "[" . $SERVICE_ACRONYM . "] Thank you for your " . $SERVICE_ACRONYM . " registration",
44 "text" => "Thank for registering at " . $SERVICE_ACRONYM . " .",
45 "html" => "<html><body>
46 <p>Dear {{full_name}},</p>
47 <p>Thank for registering at " . $SERVICE_ACRONYM . " .</p>"
48 . $REGISTRATION_INFORMATION . "
49 <p>
50 <p>Best regards,</p>
51 <p>" . $SERVICE_ACRONYM . " team</p>
52 </body></html>"
53];
54
matheusfillipef43dd962021-05-13 23:27:01 -030055$MAIL_TEMPLATE = (object)[
Marc Kupietz97afde42023-03-04 14:12:46 +010056 "subject" => "[" . $SERVICE_ACRONYM . "] Confirm your email address",
matheusfillipef43dd962021-05-13 23:27:01 -030057 "text" => "To complete your registration please paste this to your browser: {{url}}",
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010058 "html" => "<html><body>
Marc Kupietza3f3fdb2023-03-04 18:13:26 +010059 <p>Dear {{full_name}},</p>
60 <p>Please check the information below and click on the confirm button to complete your " . $SERVICE_ACRONYM . " registration:</p>"
61 . $REGISTRATION_INFORMATION . "
62 <p>
63 If you did not request this registration, please ignore this email.
64 If you find errors in the information above, please ignore this email and repeat the registration process.
65 </p>
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010066 <a style='display: inline-block; outline: 0; cursor: pointer;
67 padding: 5px 16px;
68 font-size: 14px;
69 font-weight: bold;
70 text-decoration: none;
71 line-height: 20px;
72 vertical-align: middle;
73 border: 1px solid;
74 border-radius: 6px;
75 color: #ffffff;
76 background-color: #2ea44f;
77 border-color: #1b1f2326;
78 box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
79 transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1);
80 transition-property: color, background-color, border-color;
81 :hover {
82 background-color: #2c974b;
83 border-color: #1b1f2326;
84 transition-duration: 0.1s;
85 }
Marc Kupietz97afde42023-03-04 14:12:46 +010086 ' href='{{url}}'>Confirm " . $SERVICE_ACRONYM . " registration</a>
Marc Kupietza3f3fdb2023-03-04 18:13:26 +010087 <p>Best regards,</p>
88 <p>" . $SERVICE_ACRONYM . " team</p>
matheusfillipef43dd962021-05-13 23:27:01 -030089 </body></html>"
90];
91
92
93$RECOVERY_EMAIL_TEMPLATE = (object)[
Marc Kupietz97afde42023-03-04 14:12:46 +010094 "subject" => "[" . $SERVICE_ACRONYM . "] Reset password for your " . $SERVICE_ACRONYM . " account",
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010095 "text" => "Seems you requested a password reset. If that wasn't you please ignore this message. Otherwise go to this url to change your password: {{url}}",
Marc Kupietz97afde42023-03-04 14:12:46 +010096 "html" => "<html><body><h3>Forgot your " . $SERVICE_ACRONYM . " password?</h3>
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010097 <p>It seems that you requested a password reset. If that wasn't you please ignore this message. Otherwise click the button below to reset your password</p>
98 <a style='
99 display: inline-block;
100 outline: none;
101 cursor: pointer;
102 font-weight: bold;
103 text-decoration: none;
104 border-radius: 3px;
105 padding: 12px 24px;
106 border: 0;
107 color: #fff;
108 background: #ff5000;
109 line-height: 1.15;
110 font-size: 14px;
111 :hover {
112 transition: all .1s ease;
113 box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
114 }
Marc Kupietz97afde42023-03-04 14:12:46 +0100115 ' href='{{url}}'>Reset your " . $SERVICE_ACRONYM . " password</a>
matheusfillipef43dd962021-05-13 23:27:01 -0300116 </body></html>"
117];
118
119
120// Add the support email there
121$PASSWORD_CHANGED_EMAIL_TEMPLATE = (object)[
Marc Kupietz97afde42023-03-04 14:12:46 +0100122 "subject" => "[" . $SERVICE_ACRONYM . "] Your " . $SERVICE_ACRONYM . " password was changed",
Marc Kupietzb527e642023-02-23 10:04:21 +0100123 "text" => "Your password was changed successfully. If this wasn't you please contact support",
matheusfillipef43dd962021-05-13 23:27:01 -0300124 "html" => "<html><body>
Marc Kupietz97afde42023-03-04 14:12:46 +0100125 <h3>" . $SERVICE_ACRONYM . " password changed</h3><p>Your password was changed successfully. If this wasn't you please contact support.</p>
matheusfillipef43dd962021-05-13 23:27:01 -0300126 </body></html>"
127];