mirror of
https://github.com/itflow-org/itflow
synced 2026-03-09 07:14:51 +00:00
Admin mail settings
- Disable the IMAP test button as it doesn't work yet - Remove word 'successfully' when testing SMTP as we're only adding the message to the queue, it wasn't sent yet
This commit is contained in:
@@ -295,7 +295,7 @@ require_once "includes/inc_all_admin.php";
|
|||||||
<option value="4"><?php echo nullable_htmlentities($config_ticket_from_name); ?> (<?php echo nullable_htmlentities($config_ticket_from_email); ?>)</option>
|
<option value="4"><?php echo nullable_htmlentities($config_ticket_from_name); ?> (<?php echo nullable_htmlentities($config_ticket_from_email); ?>)</option>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<input type="email" class="form-control " name="email_to" placeholder="Email address to send to">
|
<input type="email" class="form-control " name="email_to" placeholder="Email address to send to">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
@@ -319,7 +319,7 @@ require_once "includes/inc_all_admin.php";
|
|||||||
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token'] ?>">
|
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token'] ?>">
|
||||||
|
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button type="submit" name="test_email_imap" class="btn btn-success"><i class="fas fa-fw fa-inbox mr-2"></i>Test</button>
|
<button type="submit" name="test_email_imap" class="btn btn-success" disabled><i class="fas fa-fw fa-inbox mr-2"></i>Test (WIP)</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ if (isset($_POST['test_email_smtp'])) {
|
|||||||
$mail = addToMailQueue($data);
|
$mail = addToMailQueue($data);
|
||||||
|
|
||||||
if ($mail === true) {
|
if ($mail === true) {
|
||||||
$_SESSION['alert_message'] = "Test email queued successfully! <a class='text-bold text-light' href='admin_mail_queue.php'>Check Admin > Mail queue</a>";
|
$_SESSION['alert_message'] = "Test email queued! <a class='text-bold text-light' href='admin_mail_queue.php'>Check Admin > Mail queue</a>";
|
||||||
} else {
|
} else {
|
||||||
$_SESSION['alert_type'] = "error";
|
$_SESSION['alert_type'] = "error";
|
||||||
$_SESSION['alert_message'] = "Failed to add test mail to queue";
|
$_SESSION['alert_message'] = "Failed to add test mail to queue";
|
||||||
|
|||||||
Reference in New Issue
Block a user