Clase enviar correo
This commit is contained in:
parent
e5b5f93087
commit
5c79dc9172
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||
*/
|
||||
package Modelo;
|
||||
|
||||
import java.util.Properties;
|
||||
import javax.mail.Session;
|
||||
import javax.mail.internet.MimeMessage;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Daniel
|
||||
*/
|
||||
public class EnviarCorreo {
|
||||
private static String emailFrom= "drannet9@gmail.com";
|
||||
private static String passwordFrom="qnjkswqvuonuporj";
|
||||
private static String emailTo;
|
||||
private static String Subject;
|
||||
private static String content;
|
||||
|
||||
private Properties mProperties;
|
||||
private Session mSession;
|
||||
private MimeMessage mCorreo;
|
||||
|
||||
public EnviarCorreo(){
|
||||
mProperties = new Properties();
|
||||
}
|
||||
|
||||
private void createEmail(){
|
||||
|
||||
}
|
||||
|
||||
private void sendEmail(){
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue