GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — projectsend/email-test.php at develop · sitecode/projectsend Expand file tree/ Copy pathemail-test.phpMore file actions 65 lines (57 loc) · 2.47 KB / Copy pathemail-test.phpFile metadata and controls65 lines (57 loc) · 2.47 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 <?php /** * Allows the administrator to customize the emails * sent by the system. */ require_once 'bootstrap.php'; check_access_enhanced(['test_email']); $page_title = __('Test email configuration', 'cftp_admin'); $page_id = 'email_test'; $active_nav = 'tools'; include_once ADMIN_VIEWS_DIR . DS . 'header.php'; if ($_POST) { $email = new \ProjectSend\Classes\Emails; $email->send([ 'type' => 'test_settings', 'to' => $_POST['to'], 'message' => $_POST['message'], ]); } ?> <div class="row"> <div class="col-12 col-sm-12 col-lg-6"> <div class="white-box"> <div class="white-box-interior"> <form action="email-test.php" name="email_test" method="post" enctype="multipart/form-data" class="form-horizontal"> <?php addCsrf(); ?> <input type="hidden" name="section" value="<?php echo $section; ?>"> <?php if ($_POST) { ?> <div class="form-group row"> <div class="col-sm-12"> <label for="result"><?php _e('Result', 'cftp_admin'); ?></label> <textarea name="result" id="result" class="form-control textarea_high" readonly><?php echo $email->getDebugResult(); ?></textarea> </div> </div> <?php } ?> <div class="form-group row"> <div class="col-sm-12"> <label for="to"><?php _e('Send to:', 'cftp_admin'); ?></label> <input type="text" name="to" id="to" class="form-control" value="<?php echo CURRENT_USER_EMAIL; ?>"> </div> </div> <div class="form-group row"> <div class="col-sm-12"> <label for="message"><?php _e('Message', 'cftp_admin'); ?></label> <textarea name="message" id="message" class="form-control textarea_high"></textarea> </div> </div> <div class="after_form_buttons"> <button type="submit" name="submit" class="btn btn-wide btn-primary empty"><?php _e('Send test email', 'cftp_admin'); ?></button> </div> </form> </div> </div> </div> </div> <?php include_once ADMIN_VIEWS_DIR . DS . 'footer.php'; |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |