blob: 2d31ff81d1ae725af62b05fd5c5104cc2169699e [file] [log] [blame]
matheusfillipef43dd962021-05-13 23:27:01 -03001<?php
Marc Kupietz0375b7e2023-03-04 18:13:26 +01002$REGISTRATION_INFORMATION = "
Marc Kupietzaf34d372023-03-10 13:54:22 +01003<details>
4<summary>Registration details</summary>
Marc Kupietz3417c882023-03-07 12:03:21 +01005{{usertable}}
Marc Kupietzaf34d372023-03-10 13:54:22 +01006</details>
Marc Kupietz0375b7e2023-03-04 18:13:26 +01007";
8
Marc Kupietzfc4e2272023-03-06 07:06:45 +01009$WELCOME_TEMPLATE = (object)[
10 "subject" => "[" . $SERVICE_ACRONYM . "] Thank you for your " . $SERVICE_ACRONYM . " registration",
Marc Kupietz87a14312023-03-09 20:39:31 +010011 "text" => "Thank for registering for " . $SERVICE_ACRONYM . " .",
Marc Kupietzfc4e2272023-03-06 07:06:45 +010012 "html" => "<html><body>
13 <p>Dear {{full_name}},</p>
Marc Kupietz87a14312023-03-09 20:39:31 +010014 <p>Thank for registering for " . $SERVICE_ACRONYM . " .</p>"
Marc Kupietzfc4e2272023-03-06 07:06:45 +010015 . $REGISTRATION_INFORMATION . "
16 <p>
17 <p>Best regards,</p>
Marc Kupietzb71685d2023-03-10 13:54:22 +010018 <p>Your " . $SERVICE_ACRONYM . " team</p>
Marc Kupietzfc4e2272023-03-06 07:06:45 +010019 </body></html>"
20];
21
matheusfillipef43dd962021-05-13 23:27:01 -030022$MAIL_TEMPLATE = (object)[
Marc Kupietzad3ab5d2023-03-04 14:12:46 +010023 "subject" => "[" . $SERVICE_ACRONYM . "] Confirm your email address",
matheusfillipef43dd962021-05-13 23:27:01 -030024 "text" => "To complete your registration please paste this to your browser: {{url}}",
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010025 "html" => "<html><body>
Marc Kupietz0375b7e2023-03-04 18:13:26 +010026 <p>Dear {{full_name}},</p>
Marc Kupietzaf34d372023-03-10 13:54:22 +010027 <p>Please check the registration details below and click on the confirm button to complete your " . $SERVICE_ACRONYM . " registration:</p>"
Marc Kupietz0375b7e2023-03-04 18:13:26 +010028 . $REGISTRATION_INFORMATION . "
29 <p>
30 If you did not request this registration, please ignore this email.
31 If you find errors in the information above, please ignore this email and repeat the registration process.
32 </p>
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010033 <a style='display: inline-block; outline: 0; cursor: pointer;
34 padding: 5px 16px;
35 font-size: 14px;
36 font-weight: bold;
37 text-decoration: none;
38 line-height: 20px;
39 vertical-align: middle;
40 border: 1px solid;
41 border-radius: 6px;
42 color: #ffffff;
43 background-color: #2ea44f;
44 border-color: #1b1f2326;
45 box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
46 transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1);
47 transition-property: color, background-color, border-color;
48 :hover {
49 background-color: #2c974b;
50 border-color: #1b1f2326;
51 transition-duration: 0.1s;
52 }
Marc Kupietzad3ab5d2023-03-04 14:12:46 +010053 ' href='{{url}}'>Confirm " . $SERVICE_ACRONYM . " registration</a>
Marc Kupietz0375b7e2023-03-04 18:13:26 +010054 <p>Best regards,</p>
Marc Kupietzb71685d2023-03-10 13:54:22 +010055 <p>Your " . $SERVICE_ACRONYM . " team</p>
matheusfillipef43dd962021-05-13 23:27:01 -030056 </body></html>"
57];
58
59
60$RECOVERY_EMAIL_TEMPLATE = (object)[
Marc Kupietzad3ab5d2023-03-04 14:12:46 +010061 "subject" => "[" . $SERVICE_ACRONYM . "] Reset password for your " . $SERVICE_ACRONYM . " account",
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010062 "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 Kupietzad3ab5d2023-03-04 14:12:46 +010063 "html" => "<html><body><h3>Forgot your " . $SERVICE_ACRONYM . " password?</h3>
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010064 <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>
65 <a style='
66 display: inline-block;
67 outline: none;
68 cursor: pointer;
69 font-weight: bold;
70 text-decoration: none;
71 border-radius: 3px;
72 padding: 12px 24px;
73 border: 0;
74 color: #fff;
75 background: #ff5000;
76 line-height: 1.15;
77 font-size: 14px;
78 :hover {
79 transition: all .1s ease;
80 box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
81 }
Marc Kupietzad3ab5d2023-03-04 14:12:46 +010082 ' href='{{url}}'>Reset your " . $SERVICE_ACRONYM . " password</a>
matheusfillipef43dd962021-05-13 23:27:01 -030083 </body></html>"
84];
85
86
87// Add the support email there
88$PASSWORD_CHANGED_EMAIL_TEMPLATE = (object)[
Marc Kupietzad3ab5d2023-03-04 14:12:46 +010089 "subject" => "[" . $SERVICE_ACRONYM . "] Your " . $SERVICE_ACRONYM . " password was changed",
Marc Kupietzb527e642023-02-23 10:04:21 +010090 "text" => "Your password was changed successfully. If this wasn't you please contact support",
matheusfillipef43dd962021-05-13 23:27:01 -030091 "html" => "<html><body>
Marc Kupietzad3ab5d2023-03-04 14:12:46 +010092 <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 -030093 </body></html>"
94];