smtpServer = $smtpServer; $this->accountName = $accountName; $this->accountPassword = $accountPassword; $this->senderAddress = $senderAddress; $this->snapshotOnTicket = $sendSnapshot; } } if($_SERVER[REQUEST_METHOD]=='POST'){ $accountName = ""; $accountPassword = ""; $url=$_REQUEST['url']; $auth = $_POST['authenticate']; error_log("authenticate?: ".$auth); $smtpServer = $_POST['smtp']; error_log("smtpServer= ".$smtpServer); if($auth=="true"){ $accountName = $_POST['username']; $accountPassword = $_POST['password']; }else{ $accountName = ""; $accountPassword = ""; } error_log("accountName= ".$accountName); error_log("accountPassword= ", $accountPassword); $senderAddress = $_POST['senderaddr']; error_log("senderAddress= ".$senderAddress); if ($_REQUEST['sendSnapshot'] == '0') {$sendSnapshot = 0;} else {$sendSnapshot = 1;} error_log("sendSnapshot= ".$sendSnapshot); $emailConf = new EmailConfig($smtpServer, $accountName, $accountPassword, $senderAddress, $sendSnapshot); set_email_configuration($user, $emailConf); $returnMessage = "The outgoing server (SMTP) properties have been successfully modified."; } ?> Set SMTP Settings Background Procesing