% layout 'default', title => "Sme server 2 - emaildeliver"; % content_for 'module' => begin
% if ($config->{debug} == 1) {

%= dumper $c->current_route %= dumper $mai_datas

% } % if ( stash 'error' ) {
%= $c->render_to_string(inline => stash 'error')
%}

<%= $title%>

%= form_for '/emailsettingd' => (method => 'POST') => begin

%=l 'mai_TITLE_UNKNOWN'

%=l 'mai_DESC_UNKNOWN'

%=l 'mai_LABEL_UNKNOWN' % param 'EmailUnknownUser' => $mai_datas->{emailunknownuser} unless param 'EmailUnknownUser'; %= select_field 'EmailUnknownUser' => $c->get_emailunknownuser_opt(), class => 'input'

%=l 'mai_TITLE_DELEGATE'

%=l 'mai_DESC_DELEGATE'

%=l 'mai_LABEL_DELEGATE' % param 'DelegateMailServer' => $mai_datas->{delegatemailserver} unless param 'DelegateMailServer'; %= text_field 'DelegateMailServer', class => 'input'


%=l 'mai_TITLE_SMARTHOST'

%=l 'mai_DESC_SMARTHOST'

%=l 'mai_LABEL_SMARTHOST' % param 'SMTPSmartHost' => $mai_datas->{smtpsmarthost} unless param 'SMTPSmartHost'; %= text_field 'SMTPSmartHost', class => 'input'

%=l 'mai_LABEL_SMARTHOST_SMTPAUTH_STATUS' % param 'SMTPAUTHPROXY_status' => $mai_datas->{smtpauthproxystatus} unless param 'SMTPAUTHPROXY_status'; %= select_field 'SMTPAUTHPROXY_status' => [[(l 'DISABLED') => 'disabled'], [(l 'ENABLED') => 'enabled']], class => 'input'

%=l 'mai_LABEL_SMARTHOST_SMTPAUTH_USERID' % param 'SMTPAUTHPROXY_Userid' => $mai_datas->{smtpauthproxyuserid} unless param 'SMTPAUTHPROXY_Userid'; %= text_field 'SMTPAUTHPROXY_Userid', class => 'input'

%=l 'mai_LABEL_SMARTHOST_SMTPAUTH_PASSWD' % param 'SMTPAUTHPROXY_Passwd' => $mai_datas->{smtpauthproxypassword} unless param 'SMTPAUTHPROXY_Passwd'; %= password_field 'SMTPAUTHPROXY_Passwd', class => 'input'

% my $btn = l('SAVE'); %= submit_button "$btn", class => 'action' %= hidden_field 'trt' => 'DEL' % end
%end