Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added check for missing mailfrom setup

  • Loading branch information...
commit b68104c333b7a42098976744bdaf8de46c6f8afc 1 parent 4e9e300
Andreas Gohr authored

Showing 2 changed files with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 admin.php
  2. +4 0 lang/en/lang.php
5 admin.php
@@ -50,8 +50,13 @@ function handle() {
50 50 */
51 51 function html() {
52 52 global $INPUT;
  53 + global $conf;
  54 +
53 55 echo $this->locale_xhtml('intro');
54 56
  57 + if(!$conf['mailfrom']) msg($this->getLang('nofrom'),-1);
  58 +
  59 +
55 60 $form = new Doku_Form(array());
56 61 $form->startFieldset('Testmail');
57 62 $form->addHidden('send', 1);
4 lang/en/lang.php
... ... @@ -0,0 +1,4 @@
  1 +<?php
  2 +
  3 +$lang['menu'] = 'Check SwiftMail configuration';
  4 +$lang['nofrom'] = 'You did not configure the \'mailfrom\' option. Sending mails will probably fail.';

0 comments on commit b68104c

Please sign in to comment.
Something went wrong with that request. Please try again.