diff options
author | till <till@php.net> | 2008-02-25 10:49:35 +0000 |
---|---|---|
committer | till <till@php.net> | 2008-02-25 10:49:35 +0000 |
commit | e240d5b35b0c06310bb296e2850572bc13018ec0 (patch) | |
tree | e39dea51b5fe46f58ed6a5576ff184f138e10011 | |
parent | 619cfb2df29300f051387edc3c95e1be124a4e27 (diff) |
* disabled smtp check if no smtp is configured ;) (thanks, Assid)
-rw-r--r-- | check.php-dist | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/check.php-dist b/check.php-dist index 72b35030a..7fd943f99 100644 --- a/check.php-dist +++ b/check.php-dist @@ -423,8 +423,12 @@ endif; ?> Recipient:<br /> <?php echo $rctest_config['from']; ?><br /> <br /> +<?php if (!empty($rctest_config['smtp_server'])): ?> <input type="hidden" name="action" value="smtp" /> <input type="submit" value="send an email" /> +<?php else: ?> +<i>Because you did not configure SMTP, you cannot test it!</i> +<?php endif; ?> </form> <?php if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['action'] == 'smtp') { |