Location: PHPKode > projects > MembersGear > membersgear/installation/configuration_email.php
<?php
  require_once "config/config.php";
  if($_POST)
   {
    
        $lsPhpMailerHost=addslashes($_POST['host']);
         if(isset($_POST['auth']) )  
             $lsPhpMailerAuth=addslashes($_POST['auth']); 
        else
           $lsPhpMailerAuth="false"; 
           
        $lsPhpMailerUsername=addslashes($_POST['authusername']);
        $lsPhpMailerPassword=addslashes($_POST['authupassword']);
        $lsPhpMailerPort=addslashes($_POST['port']);
        $lsphpMaileremailfrom=addslashes($_POST['emailfrom']);
        $lsphpMaileremailfromName=addslashes($_POST['emailfromname']);
        
        
        $lsAdmin_Email_Address = addslashes($_POST['txt-admin-email']);
        $lsAdmin_Email_Address_Hdn =addslashes( $_POST['hdn-admin-email']);
        
        $lsemailMethod=addslashes($_POST['mailMethod']);                          
        
        $_SESSION['OPTIONS']['PHPMAILER_HOST']=$lsPhpMailerHost;
        $_SESSION['OPTIONS']['PHPMAILER_SMTPAUTH']=$lsPhpMailerAuth;
        $_SESSION['OPTIONS']['PHPMAILER_USERNAME']=$lsPhpMailerUsername;
        $_SESSION['OPTIONS']['PHPMAILER_PASSWORD']=$lsPhpMailerPassword;
        $_SESSION['OPTIONS']['PHPMAILER_PORT']=$lsPhpMailerPort;
        $_SESSION['OPTIONS']['PHPMAILER_EMAIL_FROM']=$lsphpMaileremailfrom;
        $_SESSION['OPTIONS']['PHPMAILER_EMAIL_FROM_NAME']=$lsphpMaileremailfromName;
        $_SESSION['OPTIONS']['ADMINISTRATOR_EMAIL_ADDRESS']=$lsAdmin_Email_Address;
        $_SESSION['OPTIONS']['SEND_EMAIL_METHOD']=$lsemailMethod;
        $_SESSION['EMAIL_INSTALLATION']='done';
        redirect("next_step.php");
        
   }
   else
    {    
        
        if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
           $smarty_installation->assign('os','win');
        else 
           $smarty_installation->assign('os','other');
         
        $smarty_installation->assign('phpmailer_port','25');
        $smarty_installation->display('installation_configuration_email.tpl');
    }
  ?>
Return current item: MembersGear