<commit_before><? $ih = Loader::helper('concrete/interface'); ?>
<?
$enabledVals = array('0' => t('No'), '1' => t('Yes'));
$secureVals = array('' => t('None'), 'SSL' => 'SSL', 'TLS' => 'TLS');
$form = Loader::helper('form');
?>
	

	<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('SMTP Method'), false, 'span8 offset2', false)?>
	<form method="post" action="<?=$this->url('/dashboard/system/mail/method', 'save_settings')?>" class="form-horizontal" id="mail-settings-form">
	<?php Loader::helper('validation/token')->output('save_settings') ?>
	<div class="ccm-pane-body">
	<fieldset>
	<legend><?=t('Send Mail Method')?></legend>
	<div class="control-group">
	<div class="controls">
	<label class="radio"><?=$form->radio('MAIL_SEND_METHOD', 'PHP_MAIL', MAIL_SEND_METHOD)?> <span><?=t('Default PHP Mail Function')?></span></label>
	<label class="radio"><?=$form->radio('MAIL_SEND_METHOD', 'SMTP', MAIL_SEND_METHOD)?> <span><?=t('External SMTP Server')?></span></label>
	</div>
	</div>
	</fieldset>
	<fieldset id="ccm-settings-mail-smtp">
		<legend><?=t('SMTP Settings')?></legend>
			<div class="control-group">
				<?=$form->label('MAIL_SEND_METHOD_SMTP_SERVER',t('Mail Server'));?>
				<div class="controls">
					<?=$form->text('MAIL_SEND_METHOD_SMTP_SERVER', Config::get('MAIL_SEND_METHOD_SMTP_SERVER'))?>
				</div>
			</div>
			<div class="control-group">
				<?=$form->label('MAIL_SEND_METHOD_SMTP_USERNAME',t('Username'));?>
				<div class="controls">
					<?=$form->text('MAIL_SEND_METHOD_SMTP_USERNAME', Config::get('MAIL_SEND_METHOD_SMTP_USERNAME'))?>
				</div>
			</div>
			<div class="control-group">
				<?=$form->label('MAIL_SEND_METHOD_SMTP_PASSWORD',t('Password'));?>
				<div class="controls">
					<?=$form->password('MAIL_SEND_METHOD_SMTP_PASSWORD', Config::get('MAIL_SEND_METHOD_SMTP_PASSWORD'))?>
				</div>
			</div>
			
			<div class="control-group">
				<?=$form->label('MAIL_SEND_METHOD_SMTP_ENCRYPTION',t('Encryption'));?>
				<div class="controls">
					<?=$form->select('MAIL_SEND_METHOD_SMTP_ENCRYPTION', $secureVals, Config::get('MAIL_SEND_METHOD_SMTP_ENCRYPTION'))?>
				</div>
			</div>
			<div class="control-group"><commit_msg>Avoid password-save requests<commit_after><? $ih = Loader::helper('concrete/interface'); ?>
<?
$enabledVals = array('0' => t('No'), '1' => t('Yes'));
$secureVals = array('' => t('None'), 'SSL' => 'SSL', 'TLS' => 'TLS');
$form = Loader::helper('form');
?>
	

	<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('SMTP Method'), false, 'span8 offset2', false)?>
	<form method="post" action="<?=$this->url('/dashboard/system/mail/method', 'save_settings')?>" class="form-horizontal" id="mail-settings-form">
	<?php Loader::helper('validation/token')->output('save_settings') ?>
	<div class="ccm-pane-body">
	<fieldset>
	<legend><?=t('Send Mail Method')?></legend>
	<div class="control-group">
	<div class="controls">
	<label class="radio"><?=$form->radio('MAIL_SEND_METHOD', 'PHP_MAIL', MAIL_SEND_METHOD)?> <span><?=t('Default PHP Mail Function')?></span></label>
	<label class="radio"><?=$form->radio('MAIL_SEND_METHOD', 'SMTP', MAIL_SEND_METHOD)?> <span><?=t('External SMTP Server')?></span></label>
	</div>
	</div>
	</fieldset>
	<fieldset id="ccm-settings-mail-smtp">
		<legend><?=t('SMTP Settings')?></legend>
			<div class="control-group">
				<?=$form->label('MAIL_SEND_METHOD_SMTP_SERVER',t('Mail Server'));?>
				<div class="controls">
					<?=$form->text('MAIL_SEND_METHOD_SMTP_SERVER', Config::get('MAIL_SEND_METHOD_SMTP_SERVER'))?>
				</div>
			</div>
			<div class="control-group">
				<?=$form->label('MAIL_SEND_METHOD_SMTP_USERNAME',t('Username'));?>
				<div class="controls">
					<?=$form->text('MAIL_SEND_METHOD_SMTP_USERNAME', Config::get('MAIL_SEND_METHOD_SMTP_USERNAME'))?>
				</div>
			</div>
			<div class="control-group">
				<?=$form->label('MAIL_SEND_METHOD_SMTP_PASSWORD',t('Password'));?>
				<div class="controls">
					<?=$form->password('MAIL_SEND_METHOD_SMTP_PASSWORD', Config::get('MAIL_SEND_METHOD_SMTP_PASSWORD'), array('autocomplete' => 'off'))?>
				</div>
			</div>
			
			<div class="control-group">
				<?=$form->label('MAIL_SEND_METHOD_SMTP_ENCRYPTION',t('Encryption'));?>
				<div class="controls">
					<?=$form->select('MAIL_SEND_METHOD_SMTP_ENCRYPTION', $secureVals, Config::get('MAIL_SEND_METHOD_SMTP_ENCRYPTION'))?>
				</div>
			</div>
			<div class="control-group">
{'fraction_non_alphanumeric': 0.23709713770565696, 'fraction_numerical': 0.001803020058598152, 'mean_word_length': 6.664939550949914, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 154, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5009760', 'n_tokens_mistral': 1761, 'n_tokens_neox': 1645, 'n_words': 213}