<?php
/*
	Stempora Web Framework
	Copyright (c) 2002-2015 Stempora. 
	All rights reserved.
		web:  www.stempora.com
		mail: support@stempora.com				
*/


//generate the default server connection 

$this->db->QueryInsert(
	$this->tables["plugin:mail_servers"],
	array(
		"server_name"					=> "Default Server",
		"server_default"				=> "1",
		"server_status"					=> "1",

		"set_switft_transport"			=> $this->vars->data["set_switft_transport"],
		"set_swiftp_smtp_server"		=> $this->vars->data["set_swiftp_smtp_server"],
		"set_swiftp_smtp_port"			=> $this->vars->data["set_swiftp_smtp_port"],
		"set_swiftp_smtp_auth"			=> $this->vars->data["set_swiftp_smtp_auth"],
		"set_swiftp_smtp_auth_username"	=> $this->vars->data["set_swiftp_smtp_auth_username"],
		"set_swiftp_smtp_auth_password"	=> $this->vars->data["set_swiftp_smtp_auth_password"],
		"set_swiftp_smtp_enc"			=> $this->vars->data["set_swiftp_smtp_enc"],
		"set_swiftp_sendmail"			=> $this->vars->data["set_swiftp_sendmail"],
	)
);

if (method_exists($this->vars , "delVars")) {
	
	$this->vars->delVars(array(
		"set_switft_transport",
		"set_swiftp_smtp_server",
		"set_swiftp_smtp_port",	
		"set_swiftp_smtp_auth",			
		"set_swiftp_smtp_auth_username",
		"set_swiftp_smtp_auth_password",
		"set_swiftp_smtp_enc",
		"set_swiftp_sendmail",			
	));
}

?>