]> git.mjollnir.org Git - moodle.git/commitdiff
Allow multiple SMTP hosts or host:port to be defined in $CFG->smtphosts. MDL-15923...
authorstronk7 <stronk7>
Sun, 3 Aug 2008 21:14:31 +0000 (21:14 +0000)
committerstronk7 <stronk7>
Sun, 3 Aug 2008 21:14:31 +0000 (21:14 +0000)
admin/settings/server.php

index b94989fc57190e9a989ce7a6925772e6b6d3dd01..095c0b5850df8921331d233eb7989c2ca9e38e69 100644 (file)
@@ -20,7 +20,7 @@ $ADMIN->add('server', $temp, 0);
 
 // "email" settingpage
 $temp = new admin_settingpage('mail', get_string('mail','admin'));
-$temp->add(new admin_setting_configtext('smtphosts', get_string('smtphosts', 'admin'), get_string('configsmtphosts', 'admin'), '', PARAM_HOST));
+$temp->add(new admin_setting_configtext('smtphosts', get_string('smtphosts', 'admin'), get_string('configsmtphosts', 'admin'), '', PARAM_RAW));
 $temp->add(new admin_setting_configtext('smtpuser', get_string('smtpuser', 'admin'), get_string('configsmtpuser', 'admin'), '', PARAM_NOTAGS));
 $temp->add(new admin_setting_configpasswordunmask('smtppass', get_string('smtppass', 'admin'), get_string('configsmtpuser', 'admin'), ''));
 $temp->add(new admin_setting_configtext('smtpmaxbulk', get_string('smtpmaxbulk', 'admin'), get_string('configsmtpmaxbulk', 'admin'), 1, PARAM_INT));