Permalink
Browse files

added check for missing mailfrom setup

  • Loading branch information...
1 parent 4e9e300 commit b68104c333b7a42098976744bdaf8de46c6f8afc @splitbrain committed Oct 19, 2012
Showing with 9 additions and 0 deletions.
  1. +5 −0 admin.php
  2. +4 −0 lang/en/lang.php
View
5 admin.php
@@ -50,8 +50,13 @@ function handle() {
*/
function html() {
global $INPUT;
+ global $conf;
+
echo $this->locale_xhtml('intro');
+ if(!$conf['mailfrom']) msg($this->getLang('nofrom'),-1);
+
+
$form = new Doku_Form(array());
$form->startFieldset('Testmail');
$form->addHidden('send', 1);
View
4 lang/en/lang.php
@@ -0,0 +1,4 @@
+<?php
+
+$lang['menu'] = 'Check SwiftMail configuration';
+$lang['nofrom'] = 'You did not configure the \'mailfrom\' option. Sending mails will probably fail.';

0 comments on commit b68104c

Please sign in to comment.