/* 
	Clase para la el envio de un unico email
*/

var EnvioUnico = function ( email, url ,  errorFunc, correctoFunc){
	
	this.url = url;
	this.email = email;
	this.errorFunc = errorFunc;
	this.correctoFunc = correctoFunc;
	
	// enviamos al php
	
	this.process();

}

EnvioUnico.prototype.process = function (){
	
		var onload   = this.correctoFunc;
		var params   = "email=" + this.email;
		var onerror = this.errorFunc;
		
		this.send = new net.ContentLoader (this.url, onload, onerror, "POST", params)
		
}
