package br.ufrn.Myeclone.controler;

public class EnviarEmail extends AcoesCommand{

	@Override
	public void execute() {
		// TODO Auto-generated method stub
		
	}

}

@@ -34,134 +34,1393 @@
 r;%0A%0A
-public class EnviarEmail extends AcoesCommand%7B%0A%0A%09@Override%0A%09public void execute() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A
+import java.util.Properties;%0Aimport javax.mail.Message;%0Aimport javax.mail.MessagingException;%0Aimport javax.mail.PasswordAuthentication;%0Aimport javax.mail.Session;%0Aimport javax.mail.Transport;%0Aimport javax.mail.internet.InternetAddress;%0Aimport javax.mail.internet.MimeMessage;%0A %0Apublic class EnviarEmail %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09Properties props = new Properties();%0A%09%09props.put(%22mail.smtp.host%22, %22smtp.gmail.com%22);%0A%09%09props.put(%22mail.smtp.socketFactory.port%22, %22465%22);%0A%09%09props.put(%22mail.smtp.socketFactory.class%22,%0A%09%09%09%09%22javax.net.ssl.SSLSocketFactory%22);%0A%09%09props.put(%22mail.smtp.auth%22, %22true%22);%0A%09%09props.put(%22mail.smtp.port%22, %22465%22);%0A %0A%09%09Session session = Session.getDefaultInstance(props,%0A%09%09%09new javax.mail.Authenticator() %7B%0A%09%09%09%09protected PasswordAuthentication getPasswordAuthentication() %7B%0A%09%09%09%09%09return new PasswordAuthentication(%22leyenasd@gmail.com%22,%22vigorolass%22);%0A%09%09%09%09%7D%0A%09%09%09%7D);%0A %0A%09%09try %7B%0A %0A%09%09%09Message message = new MimeMessage(session);%0A%09%09%09message.setFrom(new InternetAddress(%22leyenasd@gmail.com%22));%0A%09%09%09message.setRecipients(Message.RecipientType.TO,%0A%09%09%09%09%09InternetAddress.parse(%22leyenasd@gmail.com%22));%0A%09%09%09message.setSubject(%22Testing Subject%22);%0A%09%09%09message.setText(%22Dear Mail Crawler,%22 +%0A%09%09%09%09%09%22%5Cn%5Cn No spam to my email, please!%22);%0A %0A%09%09%09Transport.send(message);%0A %0A%09%09%09System.out.println(%22Done%22);%0A %0A%09%09%7D catch (MessagingException e) %7B%0A%09%09%09throw new RuntimeException(e);%0A%09
 %09%7D%0A
+%09%7D
 %0A%7D%0A

Update EnviarEmail.java