SMTP Username and Password

es.put("mail.smtp.auth", "true");
properties.put("mail.smtp.starttls.enable", "true");
properties.put("mail.user", "dalastudent");
properties.put("mail.password", "enterpriseJava2014");
String userName = "dalastudent";
String password = "enterpriseJava2014";
String mailTo = "your-friend-email";
String subject = "h07jowan html-attachmentgrej";
String message = "HTML


hej


";
String toAddress = "[email protected]";
Previous Post Next Post

You might also like: