public class GmailMailService extends javax.mail.Authenticator implements MailService
MailService that works fine with Gmail as smtp| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
GmailMailService() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.mail.PasswordAuthentication |
getPasswordAuthentication() |
void |
sendMail(String subject,
String body,
String sender,
String recipient) |
protected javax.mail.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class javax.mail.Authenticatorpublic void sendMail(String subject, String body, String sender, String recipient) throws MailException
sendMail in interface MailServiceMailExceptionMailService.sendMail(java.lang.String, java.lang.String, java.lang.String,
java.lang.String)Copyright © 2014. All rights reserved.