
<a href="${helpuri}Configure+Notifications-0-7" id="help" target="_blank">$T('menu-help')</a><h3>$T('configEmail')</h3>
<form id="configEmail" class="cmxform" autocomplete="off">
<div class="EntryBlock">
<fieldset class="EntryFieldSet">
<legend>$T('emailOptions')</legend>
  <hr />


  <span class="label">$T('opt-email_endjob'):</span>
    <input class="radio" type="radio" name="email_endjob" value="0" <!--#if $email_endjob == "0" then "checked=1" else ""#--> /> $T('email-never')
    <input class="radio" type="radio" name="email_endjob" value="1" <!--#if $email_endjob == "1" then "checked=1" else ""#--> /> $T('email-always')
    <input class="radio" type="radio" name="email_endjob" value="2" <!--#if $email_endjob == "2" then "checked=1" else ""#--> /> $T('email-errorOnly')
  <span class="tips">$T('opt-email_endjob')</span>
<br class="clear" />

  <label><span class="label">$T('opt-email_full'):</span>
  <input class="radio" type="checkbox" name="email_full" value="1" <!--#if $email_full != "0" then "checked=1" else ""#--> />
  <span class="tips">$T('explain-email_full')</span></label>
<br class="clear" />


  <label><span class="label">$T('opt-email_rss'):</span>
  <input class="radio" type="checkbox" name="email_rss" value="1" <!--#if $email_rss != "0" then "checked=1" else ""#--> />
  <span class="tips">$T('explain-email_rss')</span></label>
<br class="clear" />


  <label class="label">$T('opt-email_dir'):</label>

  <input type="text" size="35" name="email_dir" value="$email_dir">
  <span class="tips">$T('explain-email_dir')</span>
  <br class="clear" />

</fieldset>

<fieldset class="EntryFieldSet">
<legend>$T('emailAccount')</legend>
<hr />


  <label class="label">$T('opt-email_server'):</label>

  <input type="text" size="35" name="email_server" value="$email_server">
  <span class="tips">$T('explain-email_server')</span>
  <br class="clear" />

  <label class="label">$T('opt-email_to'):</label>

  <input type="text" size="35" name="email_to" value="$email_to">
  <span class="tips">$T('explain-email_to')</span>
  <br class="clear" />

  <label class="label">$T('opt-email_from'):</label>
  <input type="text" size="35" name="email_from" value="$email_from">
  <span class="tips">$T('explain-email_from')</span>
  <br class="clear" />

  <label class="label">$T('opt-email_account'):</label>
  <input type="text" size="35" name="email_account" value="$email_account">
  <span class="tips">$T('explain-email_account')</span>
  <br class="clear" />

  <label class="label">$T('opt-email_pwd'):</label>
  <input type="password" size="35" name="email_pwd" value="$email_pwd">
  <span class="tips">$T('explain-email_pwd')</span>
  <br class="clear" />

</fieldset>

<!--#if $have_growl or $have_ntfosd#-->
  <fieldset class="EntryFieldSet">
  <legend>$T('growlSettings')</legend>
  <hr />
    <!--#if $have_ntfosd#-->
      <label><span class="label">$T('opt-ntfosd_enable'):</span>
      <input class="radio" type="checkbox" name="ntfosd_enable" value="1" <!--#if $ntfosd_enable != "0" then "checked=1" else ""#--> />
      <span class="tips">$T('explain-ntfosd_enable')</span></label>
      <br class="clear" />
    <!--#end if#-->
    <!--#if $have_growl#-->
      <label><span class="label">$T('opt-growl_enable'):</span>
      <input class="radio" type="checkbox" name="growl_enable" value="1" <!--#if $growl_enable != "0" then "checked=1" else ""#--> />
      <span class="tips">$T('explain-growl_enable')</span></label>
      <br class="clear" />

      <label class="label">$T('opt-growl_server'):</label>
      <input type="text" size="35" name="growl_server" value="$growl_server">
      <span class="tips">$T('explain-growl_server')</span>
      <br class="clear" />

      <label class="label">$T('opt-growl_password'):</label>
      <input type="password" size="35" name="growl_password" value="$growl_password">
      <span class="tips">$T('explain-growl_password')</span>
      <br class="clear" />
    <!--#end if#-->

  </fieldset>
<!--#end if#-->
</div>

<p>
  <input type="button" size="40" value="$T('button-saveChanges')" onclick="javascript:submitconfig('config/notify/saveEmail', this, 'configEmail')">
</p>
<br class="clear" />
<a class="config" onClick="testemail();">$T('link-testEmail')</a>
<a class="config" onClick="testnotification();">$T('testNotify')</a>
<!--#if $lastmail#-->
  &nbsp;&nbsp;&nbsp;&nbsp;$T('emailResult') = <b>$lastmail</b>
<!--#end if#-->
</form>

</form>