File: WIAdmin/WIInc/product/email.php

Recommend this page to a friend!
  Classes of Jules Warner  >  WICMS  >  WIAdmin/WIInc/product/email.php  >  Download  
File: WIAdmin/WIInc/product/email.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 3 years ago
Size: 2,641 bytes


Class file image Download
<form class="form-horizontal" id="email">
                          <div id="legend">
                          <h3>Email Configuration</h3>

                    <label for="mailer">Mailer</label>
                    <select name="mailer" id="mailer">
                        <option value="mail">PHP mail()</option>
                        <option value="smtp">SMTP</option>

                    <div id="smtp-wrapper" style="display:none;">
                        <label for="smtp_host">SMTP Host</label>
                        <input type="text" class="input-xlarge" id="smtp_host" name="smtp_host">

                        <label for="smtp_port">SMTP Port</label>
                        <input type="text" class="input-xlarge" id="smtp_port" name="smtp_port">

                        <label for="smtp_username">SMTP Username</label>
                        <input type="text" class="input-xlarge" id="smtp_username" name="smtp_username">

                        <label for="smtp_password">SMTP Password</label>
                        <input type="text" class="input-xlarge" id="smtp_password" name="smtp_password">

                        <label for="smtp_enc">SMTP Encryption</label>
                        <input type="text" class="input-xlarge" id="smtp_enc" name="smtp_enc">
                        <span class="help-block">
                            Some servers require encryption (tls or ssl) set. Set it if your host requires that.

                         <div class="control-group form-group">
                            <div class="controls col-lg-offset-4 col-lg-8">
                              <button id="email-settings" class="btn btn-success">Save Settings</button>

                      <script type="text/javascript">

                      $('#mailer').on('change', function() {
                          //alert( this.value );

                          var mailer = $("#mailer").val();

                        if( mailer === "smtp"){
                          $("#smtp-wrapper").css("display", "block");
                           $("#smtp-wrapper").css("display", "none");




For more information send a message to info at phpclasses dot org.