my $password = $input->param('smtp_password') || undef;
my $debug = ( scalar $input->param('smtp_debug_mode') ) ? 1 : 0;
$password = undef
if defined $password and $password eq '****';
try {
$smtp_server->password( $password )
if $password;
</li>
<li>
<label for="smtp_password">Password: </label>
<input type="password" name="smtp_password" id="smtp_password" size="60" value="[%- smtp_server.password | html -%]"/>
<input type="password" name="smtp_password" id="smtp_password" size="60" value="****"/>
<label for="smtp_debug_mode">Debug mode: </label>
-