smtpServer = $aSmtpSrv; $this->accountName = $aName; $this->accountPassword = $aPass; $this->senderAddress = $aAddr; $this->snapshotOnTicket = $aSnapshotOnTicket; } }; // Handle the progress screen if opened and get the NEW data if ($_SERVER[REQUEST_METHOD] == "POST") { $operationInProgress = true; $status = new ReturnStatus(); // See if the TEST button was pressed. if( $_POST['test'] == 1 ) { error_log("Sending test e-mail to '". $_POST['test_email'] ."'"); send_test_email($user, $_POST['test_email']); } else { $accountPassword = ""; if( $_POST['useAuth'] != '' ) { $accountName = $_POST['acctname']; $accountPassword = $_POST['acctpassword']; } $email_info = new CEmail_info( $_POST['hostname'], $accountName, $accountPassword, $_POST['email'], $_POST['snapshotOnTicket'] ); set_email_configuration($user, $email_info); } print $status->out(); return; } else { // Load stuff up for the first time $addr = get_email_configuration($user); // Leave this commented out unless debugging - it will show the e-mail password in the log! // error_log("get_email_configuration returned:" . print_r($addr,true) ); $useAuth; if(( $addr->accountName != "") ) { $useAuth = True; } else { $useAuth = False; $addr->accountName = ""; $addr->accountPassword = ""; } } ?> Setup E-mail Notification
Login Account:
Password:
Confirm Password:
Send a test e-mail to:   
Note: The test e-mail will be sent using the current settings not the new settings.