home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / FAQ / cgi-bin / discus4_00 / source / mailpop.tmpl < prev    next >
Text File  |  2009-11-06  |  11KB  |  262 lines

  1. # FILE: mailpop.tmpl
  2. # DESCRIPTION: Pop-up for technical configuration of mail program
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. <!--BEGIN-->
  7.  
  8. <html>
  9. <head>
  10. <title>Technical Configuration of Mail Program</title>
  11. <style>
  12. body {font: bold 9pt verdana,arial,helvetica; }
  13. td.ub {font: bold 8pt verdana,arial,helvetica}
  14. td.unb {font: 9pt verdana,arial,helvetica}
  15. td.bb {font: bold 9pt verdana,arial,helvetica}
  16. p { margin-left: 2pt; }
  17. p.blbar {margin-left: 0pt; font: 11pt verdana,arial,helvetica; color: #ffff00; background-color: #000000; width: 100% }
  18. .surround {border: thin black inset; width: 100%; font: 10pt verdana,arial,helvetica }
  19. </style>
  20. </head>
  21. <body bgcolor="#ffffff" text="#000000" link="#0000FF" vlink="#0000FF">
  22. <font size=3><center><b>Technical Configuration of Mail Program</b></center></font>
  23. <hr>
  24.  
  25. <#if $general->{write_unavailable} == 1#>
  26.     <p>
  27.     <table border=0 width="550" bgcolor="#a03333">
  28.     <tr>
  29.     <td width="25" align="center" valign="center"><img src="$icon_url/attention.gif" height="20" width="20" border="0" alt="!!"></td>
  30.     <td><font face="$color->{face}" size="2" color="#ffffff">
  31.         <b>E-mail Configuration Warning</b>
  32.         </font><br>
  33.         <font face="$color->{face}" size="1" color="#ffffff">
  34.         The e-mail notification configuration file has been set up to prevent changes
  35.         through this interface.  To be able to save your changes through this interface,
  36.         remove the line "no_use=1" from the email.txt file in your Discus administration
  37.         directory.
  38.         </font>
  39.         </td>
  40.     </tr>
  41.     </table>
  42.     </p>
  43. <#endif#>
  44.  
  45. <form action="$cgiurl" method="post" name="opts">
  46. <input type="hidden" name="action" value="options_mail_save">
  47.  
  48. <#if $general->{sent} == 1#>
  49.     <div class="surround">
  50.         {#if $browser->{ieX}#}<p class="blbar">Test Message Sent</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Test Message Sent</font></font></td></tr></table>{#endif#}
  51.         <p>
  52.         With the parameters you specified below, a test message was sent to you.
  53.         If you receive this message, you should save the settings below to make
  54.         them permanent.  If you do not receive the message, revise your settings
  55.         below.
  56.         </p>
  57.         <ul><p>
  58.         <input type=submit value="Save Settings Now" onClick="document.forms[0].no_test.value = '1';">
  59.         </p></ul>
  60.         <input type="hidden" name="username" value="$general->{username}">
  61.     </div>
  62.     <br><br>
  63. <#else#>
  64.     <input type="hidden" name="username" value="$general->{username}">
  65. <#endif#>
  66.  
  67. <#if $stuff->{saved} == 1#>
  68.     <div class="surround">
  69.         {#if $browser->{ieX}#}<p class="blbar">Settings Saved</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Settings Saved</font></font></td></tr></table>{#endif#}
  70.         <p>
  71.         Your settings have been saved successfully.
  72.         </p>
  73.         <ul>
  74.             <p>
  75.             <input type=button value="Close" onClick="self.close()">
  76.             </p>
  77.         </ul>
  78.     </div>
  79.     <br><br>
  80. <#else#>
  81.  
  82. <#if $general->{screen} == 0#>
  83.     <div class="surround">
  84.         {#if $browser->{ieX}#}<p class="blbar">Choose Mailing Method</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Choose Mailing Method</font></font></td></tr></table>{#endif#}
  85.         <p>
  86.         Choose here the method of e-mail sending that you wish to use.
  87.         </p>
  88.         <ul>
  89.             <table>
  90.             <tr>
  91.             <td><input type=radio name="net_SMTP" value="0"{#if $general->{net_SMTP} == 0#} checked{#endif#}></td>
  92.             <td class="unb">Command Line Mailer</td>
  93.             <td class="unb">(configure below)</td>
  94.             </tr>
  95.             <#if $mailer->{net_smtp}#>
  96.                 <tr>
  97.                 <td valign=center><input type=radio name="net_SMTP" value="1"{#if $general->{net_SMTP} == 1#} checked{#endif#}></td>
  98.                 <td valign=center class="unb">Net::SMTP Module</td>
  99.                 <td><input type=text name="SMTP" size=30 value="<#form escape "$general->{SMTP}"#>"></td>
  100.                 </tr>
  101.             <#endif#>
  102.             <#if $mailer->{mail_sendmail}#>
  103.                 <tr>
  104.                 <td valign=center><input type=radio name="net_SMTP" value="2"{#if $general->{net_SMTP} == 2#} checked{#endif#}></td>
  105.                 <td valign=center class="unb">Mail::Sendmail Module</td>
  106.                 <td><input type=text name="SMTP2" size=30 value="<#form escape "$general->{SMTP2}"#>"></td>
  107.                 </tr>
  108.             <#endif#>
  109.             <#if $mailer->{raw_socket}#>
  110.                 <tr>
  111.                 <td valign=center><input type=radio name="net_SMTP" value="3"{#if $general->{net_SMTP} == 3#} checked{#endif#}></td>
  112.                 <td valign=center class="unb">Socket Module</td>
  113.                 <td><input type=text name="SMTP3" size=30 value="<#form escape "$general->{SMTP3}"#>"></td>
  114.                 </tr>
  115.             <#endif#>
  116.             </table>
  117.         </ul>
  118.     </div>
  119.     <br><br>
  120.     <div class="surround">
  121.         {#if $browser->{ieX}#}<p class="blbar">Command Line Mailer</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Command Line Mailer</font></font></td></tr></table>{#endif#}
  122.         <p>
  123.         If you selected to use a command line mailer, enter the needed parameters to operate
  124.         your mail program correctly in the boxes below.  If you chose to use any of the
  125.         modules, you can skip this section.
  126.         </p>
  127.         <#if $guess->{mail_program} ne ""#>
  128.             <p>
  129.             <font color=#ff5500><b>Recommended Mail Program:</b> $guess->{mail_program}</font>
  130.             </p>
  131.         <#endif#>
  132.         <ul>
  133.         <table>
  134.         <tr>
  135.         <td class="bb">Mail Program:</td>
  136.         <td><input type=text name="mail_program" value="<#form escape "$mail->{mail_program}"#>" size=40></td>
  137.         </tr>
  138.         <tr>
  139.         <td class="bb">Beginning of line options:</td>
  140.         <td><input type=text name="commandline" value="<#form escape "$mail->{commandline}"#>" size=20></td>
  141.         </tr>
  142.         <tr>
  143.         <td class="bb">End of line options:</td>
  144.         <td><input type=text name="commandlineend" value="<#form escape "$mail->{commandlineend}"#>" size=20></td>
  145.         </tr>
  146.         <tr>
  147.         <td class="bb">Command line format:</td>
  148.         <td><select name="lineformat" size=1>
  149.             <option value="0"{#if $mail->{lineformat} == 0#} selected{#endif#}> Values in quotes</option>
  150.             <option value="1"{#if $mail->{lineformat} == 1#} selected{#endif#}> Arguments in quotes</option>
  151.         </select></td>
  152.         </tr>
  153.         <tr>
  154.         <td class="bb">Temporary File:</td>
  155.         <td><select name="tempfile" size=1>
  156.             <option value="0"{#if $mail->{tempfile} == 0#} selected{#endif#}> Pipe into program (no temp file)</option>
  157.             <option value="1"{#if $mail->{tempfile} == 1#} selected{#endif#}> Use temporary file</option>
  158.         </select></td>
  159.         </tr>
  160.         <tr>
  161.         <td class="bb">Sending Method:</td>
  162.         <td><select name="1message" size=1>
  163.             <option value="0"{#if $mail->{1message} == 0#} selected{#endif#}> Separate message to each recipient</option>
  164.             <option value="1"{#if $mail->{1message} == 1#} selected{#endif#}> Use BCC to create one message</option>
  165.             <#if $general->{cron_available}#>
  166.                 <option value="2"{#if $mail->{1message} == 2#} selected{#endif#}> Use a 'cron job' to send messages</option>
  167.             <#endif#>
  168.         </select></td>
  169.         </tr>
  170.         <tr>
  171.         <td class="bb">To:</td>
  172.         <td class="bb">
  173.         <select name="toaddress" size=1>
  174.             <option value="0"{#if $mail->{toaddress} == 0#} selected{#endif#}> Command line prefix</option>
  175.             <option value="1"{#if $mail->{toaddress} == 1#} selected{#endif#}> Input stream prefix</option>
  176.         </select>: <input type="text" name="toaddress_prefix" size=10 value="<#form escape "$mail->{toaddress_prefix}"#>"></td>
  177.         </tr>
  178.         <tr>
  179.         <td class="bb">From:</td>
  180.         <td class="bb">
  181.         <select name="fromaddress" size=1>
  182.             <option value="0"{#if $mail->{fromaddress} == 0#} selected{#endif#}> Command line prefix</option>
  183.             <option value="1"{#if $mail->{fromaddress} == 1#} selected{#endif#}> Input stream prefix</option>
  184.             <option value="2"{#if $mail->{fromaddress} == 2#} selected{#endif#}> Do not use</option>
  185.         </select>: <input type="text" name="fromaddress_prefix" size=10 value="<#form escape "$mail->{fromaddress_prefix}"#>"></td>
  186.         </tr>
  187.         <tr>
  188.         <td class="bb">BCC:</td>
  189.         <td class="bb">
  190.         <select name="bccaddress" size=1>
  191.             <option value="0"{#if $mail->{bccaddress} == 0#} selected{#endif#}> Command line prefix</option>
  192.             <option value="1"{#if $mail->{bccaddress} == 1#} selected{#endif#}> Input stream prefix</option>
  193.             <option value="2"{#if $mail->{bccaddress} == 2#} selected{#endif#}> Do not use</option>
  194.         </select>: <input type="text" name="bccaddress_prefix" size=10 value="<#form escape "$mail->{bccaddress_prefix}"#>"></td>
  195.         </tr>
  196.         <tr>
  197.         <td class="bb">Subject:</td>
  198.         <td class="bb">
  199.         <select name="subjectaddress" size=1>
  200.             <option value="0"{#if $mail->{subjectaddress} == 0#} selected{#endif#}> Command line prefix</option>
  201.             <option value="1"{#if $mail->{subjectaddress} == 1#} selected{#endif#}> Input stream prefix</option>
  202.             <option value="2"{#if $mail->{subjectaddress} == 2#} selected{#endif#}> Do not use</option>
  203.         </select>: <input type="text" name="subjectaddress_prefix" size=10 value="<#form escape "$mail->{subjectaddress_prefix}"#>"></td>
  204.         </tr>
  205.         <tr>
  206.         <td class="bb">Reply-to:</td>
  207.         <td class="bb">
  208.         <select name="replytoaddress" size=1>
  209.             <option value="0"{#if $mail->{replytoaddress} == 0#} selected{#endif#}> Command line prefix</option>
  210.             <option value="1"{#if $mail->{replytoaddress} == 1#} selected{#endif#}> Input stream prefix</option>
  211.             <option value="2"{#if $mail->{replytoaddress} == 2#} selected{#endif#}> Do not use</option>
  212.         </select>: <input type="text" name="replytoaddress_prefix" size=10 value="<#form escape "$mail->{replytoaddress_prefix}"#>"></td>
  213.         </tr>
  214.         <tr>
  215.         <td class="bb">BLAT "user" setting:</td>
  216.         <td class="bb">
  217.         <select name="useraddress" size=1>
  218.             <option value="0"{#if $mail->{useraddress} == 0#} selected{#endif#}> Command line prefix</option>
  219.             <option value="1"{#if $mail->{useraddress} == 1#} selected{#endif#}> Input stream prefix</option>
  220.             <option value="2"{#if $mail->{useraddress} == 2#} selected{#endif#}> Do not use</option>
  221.         </select>: <input type="text" name="useraddress_prefix" size=10 value="<#form escape "$mail->{useraddress_prefix}"#>"></td>
  222.         </tr>
  223.         </table>
  224.         </ul>
  225.     </div>
  226.     <br><br>
  227.     <div class="surround">
  228.         {#if $browser->{ieX}#}<p class="blbar">Test and Save Settings</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Test and Save Settings</font></font></td></tr></table>{#endif#}
  229.         <p>
  230.         We strongly recommend that you perform a test to verify that your mail program is
  231.         working properly and that the parameters above are correct.  To test your mail
  232.         program, enter your e-mail address in this box and click the "Test" button.
  233.         </p>
  234.         <ul>
  235.             <table>
  236.             <tr>
  237.             <td class="bb">E-mail Address:</td>
  238.             <td><input type=text name="test_email_address" value="<#form escape "$mail->{test_email_address}"#>" size=30></td>
  239.             </tr>
  240.             </table>
  241.             <p>
  242.             <input type=submit value="Test">
  243.             </p>
  244.         </ul>
  245.         <p>
  246.         It is also possible to save these settings without testing them.  This is not
  247.         recommended, however.
  248.         </p>
  249.         <ul>
  250.             <p>
  251.             <input type=submit value="Save without Testing" onClick="document.forms[0].no_test.value = '1';">
  252.             </p>
  253.         </ul>
  254.         <input type=hidden name="no_test" value="0">
  255.     </div>
  256. <#endif#>
  257. <#endif#>
  258. </form>
  259. </font>
  260. </body></html>
  261. <!--END-->
  262.