blob: 41c1eaeed5fbcb3d5f959d38363beb5094f084dc [file] [log] [blame]
matheusfillipef43dd962021-05-13 23:27:01 -03001<?php
2$MAIL_TEMPLATE = (object)[
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +01003 "subject" => "[" . $SERVICE_NAME . "] Confirm your email address",
matheusfillipef43dd962021-05-13 23:27:01 -03004 "text" => "To complete your registration please paste this to your browser: {{url}}",
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +01005 "html" => "<html><body>
6 <p>Almost there! Click on the confirm button below to confirm your email address and to complete your " . $SERVICE_NAME . " registration</p>
7 <a style='display: inline-block; outline: 0; cursor: pointer;
8 padding: 5px 16px;
9 font-size: 14px;
10 font-weight: bold;
11 text-decoration: none;
12 line-height: 20px;
13 vertical-align: middle;
14 border: 1px solid;
15 border-radius: 6px;
16 color: #ffffff;
17 background-color: #2ea44f;
18 border-color: #1b1f2326;
19 box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
20 transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1);
21 transition-property: color, background-color, border-color;
22 :hover {
23 background-color: #2c974b;
24 border-color: #1b1f2326;
25 transition-duration: 0.1s;
26 }
27 ' href='{{url}}'>Confirm " . $SERVICE_NAME . " registration</a>
matheusfillipef43dd962021-05-13 23:27:01 -030028 </body></html>"
29];
30
31
32$RECOVERY_EMAIL_TEMPLATE = (object)[
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010033 "subject" => "[" . $SERVICE_NAME . "] Reset password for your " . $SERVICE_NAME . " account",
34 "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}}",
35 "html" => "<html><body><h3>Forgot your " . $SERVICE_NAME . " password?</h3>
36 <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>
37 <a style='
38 display: inline-block;
39 outline: none;
40 cursor: pointer;
41 font-weight: bold;
42 text-decoration: none;
43 border-radius: 3px;
44 padding: 12px 24px;
45 border: 0;
46 color: #fff;
47 background: #ff5000;
48 line-height: 1.15;
49 font-size: 14px;
50 :hover {
51 transition: all .1s ease;
52 box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
53 }
54 ' href='{{url}}'>Reset your " . $SERVICE_NAME . " password</a>
matheusfillipef43dd962021-05-13 23:27:01 -030055 </body></html>"
56];
57
58
59// Add the support email there
60$PASSWORD_CHANGED_EMAIL_TEMPLATE = (object)[
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010061 "subject" => "[" . $SERVICE_NAME . "] Your " . $SERVICE_NAME . " password was changed",
Marc Kupietzb527e642023-02-23 10:04:21 +010062 "text" => "Your password was changed successfully. If this wasn't you please contact support",
matheusfillipef43dd962021-05-13 23:27:01 -030063 "html" => "<html><body>
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010064 <h3>" . $SERVICE_NAME . " password changed</h3><p>Your password was changed successfully. If this wasn't you please contact support.</p>
matheusfillipef43dd962021-05-13 23:27:01 -030065 </body></html>"
66];