package br.com.swaggsige.model.service.mail;

import java.io.Serializable;

import javax.ejb.Stateless;

/**
 * 
 * SwaggSigePortal
 * @author Srgio Junior - sergio.storinojr@gmail.com
 * 
 */
@Stateless
public class AutenticadorGmail implements Serializable{

	private static EmailTextServiceUtil emailService;
	private final static String EMAIL_AUTENTICACAO = "swaggsige@gmail.com";
	private final static String SENHA_AUTENTICACAO = "19983057416";
	private final static String SERVIDOR_SMTP = "smtp.gmail.com";
	private final static String PORTA_SMTP = "465";
	private final static boolean SSL = true;
	private final static boolean TTLS = false;

	public AutenticadorGmail() {
		// TODO Auto-generated constructor stub
	}
	
	public static void autenticarEmail() {
		
		boolean autenticar = false;
		
		if(emailService == null && autenticar == false){
			
			
			emailService = new EmailTextServiceUtil(EMAIL_AUTENTICACAO,
					SENHA_AUTENTICACAO, SERVIDOR_SMTP, PORTA_SMTP, SSL, TTLS);
			autenticar = true;
		}
		//return autenticar;
	}
	
	public void enviarEmail(String emailCorpo){
		//if(autenticarEmail()){
			
			
		//}
	}

}

@@ -146,16 +146,17 @@
 author S
+%C3%A9
 rgio Jun
@@ -451,19 +451,8 @@
  = %22
-19983057416
 %22;%0D%0A

Update AutenticadorGmail.java