matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 1 | <?php |
Marc Kupietz | 0375b7e | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 2 | $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 | |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 42 | $MAIL_TEMPLATE = (object)[ |
Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 43 | "subject" => "[" . $SERVICE_ACRONYM . "] Confirm your email address", |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 44 | "text" => "To complete your registration please paste this to your browser: {{url}}", |
Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 45 | "html" => "<html><body> |
Marc Kupietz | 0375b7e | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 46 | <p>Dear {{full_name}},</p> |
| 47 | <p>Please check the information below and click on the confirm button to complete your " . $SERVICE_ACRONYM . " registration:</p>" |
| 48 | . $REGISTRATION_INFORMATION . " |
| 49 | <p> |
| 50 | If you did not request this registration, please ignore this email. |
| 51 | If you find errors in the information above, please ignore this email and repeat the registration process. |
| 52 | </p> |
Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 53 | <a style='display: inline-block; outline: 0; cursor: pointer; |
| 54 | padding: 5px 16px; |
| 55 | font-size: 14px; |
| 56 | font-weight: bold; |
| 57 | text-decoration: none; |
| 58 | line-height: 20px; |
| 59 | vertical-align: middle; |
| 60 | border: 1px solid; |
| 61 | border-radius: 6px; |
| 62 | color: #ffffff; |
| 63 | background-color: #2ea44f; |
| 64 | border-color: #1b1f2326; |
| 65 | box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset; |
| 66 | transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1); |
| 67 | transition-property: color, background-color, border-color; |
| 68 | :hover { |
| 69 | background-color: #2c974b; |
| 70 | border-color: #1b1f2326; |
| 71 | transition-duration: 0.1s; |
| 72 | } |
Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 73 | ' href='{{url}}'>Confirm " . $SERVICE_ACRONYM . " registration</a> |
Marc Kupietz | 0375b7e | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 74 | <p>Best regards,</p> |
| 75 | <p>" . $SERVICE_ACRONYM . " team</p> |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 76 | </body></html>" |
| 77 | ]; |
| 78 | |
| 79 | |
| 80 | $RECOVERY_EMAIL_TEMPLATE = (object)[ |
Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 81 | "subject" => "[" . $SERVICE_ACRONYM . "] Reset password for your " . $SERVICE_ACRONYM . " account", |
Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 82 | "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 Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 83 | "html" => "<html><body><h3>Forgot your " . $SERVICE_ACRONYM . " password?</h3> |
Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 84 | <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> |
| 85 | <a style=' |
| 86 | display: inline-block; |
| 87 | outline: none; |
| 88 | cursor: pointer; |
| 89 | font-weight: bold; |
| 90 | text-decoration: none; |
| 91 | border-radius: 3px; |
| 92 | padding: 12px 24px; |
| 93 | border: 0; |
| 94 | color: #fff; |
| 95 | background: #ff5000; |
| 96 | line-height: 1.15; |
| 97 | font-size: 14px; |
| 98 | :hover { |
| 99 | transition: all .1s ease; |
| 100 | box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6; |
| 101 | } |
Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 102 | ' href='{{url}}'>Reset your " . $SERVICE_ACRONYM . " password</a> |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 103 | </body></html>" |
| 104 | ]; |
| 105 | |
| 106 | |
| 107 | // Add the support email there |
| 108 | $PASSWORD_CHANGED_EMAIL_TEMPLATE = (object)[ |
Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 109 | "subject" => "[" . $SERVICE_ACRONYM . "] Your " . $SERVICE_ACRONYM . " password was changed", |
Marc Kupietz | b527e64 | 2023-02-23 10:04:21 +0100 | [diff] [blame] | 110 | "text" => "Your password was changed successfully. If this wasn't you please contact support", |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 111 | "html" => "<html><body> |
Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 112 | <h3>" . $SERVICE_ACRONYM . " password changed</h3><p>Your password was changed successfully. If this wasn't you please contact support.</p> |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 113 | </body></html>" |
| 114 | ]; |