| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 1 | <?php | 
 | 2 | $MAIL_TEMPLATE = (object)[ | 
| Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame^] | 3 |         "subject" => "[" . $SERVICE_ACRONYM . "] Confirm your email address", | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 4 |         "text"    => "To complete your registration please paste this to your browser: {{url}}", | 
| Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 5 |         "html" => "<html><body> | 
| Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame^] | 6 |                 <p>Almost there! Click on the confirm button below to confirm your email address and to complete your " . $SERVICE_ACRONYM . " registration</p> | 
| Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 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 |                 } | 
| Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame^] | 27 |             ' href='{{url}}'>Confirm " . $SERVICE_ACRONYM . " registration</a> | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 28 |         </body></html>" | 
 | 29 | ]; | 
 | 30 |  | 
 | 31 |  | 
 | 32 | $RECOVERY_EMAIL_TEMPLATE = (object)[ | 
| Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame^] | 33 |         "subject" => "[" . $SERVICE_ACRONYM . "] Reset password for your " . $SERVICE_ACRONYM . " account", | 
| Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 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}}", | 
| Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame^] | 35 |         "html"    => "<html><body><h3>Forgot your " . $SERVICE_ACRONYM . " password?</h3> | 
| Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 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 |                 } | 
| Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame^] | 54 |             ' href='{{url}}'>Reset your " . $SERVICE_ACRONYM . " password</a> | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 55 |         </body></html>" | 
 | 56 | ]; | 
 | 57 |  | 
 | 58 |  | 
 | 59 | // Add the support email there | 
 | 60 | $PASSWORD_CHANGED_EMAIL_TEMPLATE = (object)[ | 
| Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame^] | 61 |         "subject" => "[" . $SERVICE_ACRONYM . "] Your " . $SERVICE_ACRONYM . " password was changed", | 
| Marc Kupietz | b527e64 | 2023-02-23 10:04:21 +0100 | [diff] [blame] | 62 |         "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] | 63 |         "html"    => "<html><body> | 
| Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame^] | 64 |                 <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] | 65 |         </body></html>" | 
 | 66 | ]; |