EmailService
public class DefaultEmailService extends Object implements EmailService
Modifier and Type | Field | Description |
---|---|---|
static String |
DEFAULT_FROM_ADDRESS |
Deprecated.
|
static String |
DEFAULT_FROM_TEXT |
Deprecated.
|
static String |
DEFAULT_REPLYTO_ADDRESS |
Deprecated.
|
static String |
DEFAULT_SMTP_CHARSET |
|
static String |
DEFAULT_SMTP_HOST |
Deprecated.
|
Constructor | Description |
---|---|
DefaultEmailService() |
Modifier and Type | Method | Description |
---|---|---|
void |
init() |
|
void |
sendEmail(String address,
String subject,
String msgText) |
|
void |
sendEmail(HashSet<String> addresses,
String subject,
String msgText) |
Deprecated.
use method with InetAddress[] addresses instead.
|
void |
sendEmail(Set<javax.mail.internet.InternetAddress> recipients,
String subject,
String message) |
|
void |
sendEmail(javax.mail.internet.InternetAddress[] recipients,
String subject,
String msgText) |
|
void |
sendEmail(javax.mail.internet.InternetAddress address,
String subject,
String msgText) |
|
void |
setConfigurationService(ConfigurationService configurationService) |
@Deprecated public static final String DEFAULT_FROM_ADDRESS
@Deprecated public static final String DEFAULT_FROM_TEXT
@Deprecated public static final String DEFAULT_REPLYTO_ADDRESS
@Deprecated public static final String DEFAULT_SMTP_HOST
public static final String DEFAULT_SMTP_CHARSET
public void setConfigurationService(ConfigurationService configurationService)
public void init()
public void sendEmail(String address, String subject, String msgText)
sendEmail
in interface EmailService
address
- subject
- msgText
- public void sendEmail(Set<javax.mail.internet.InternetAddress> recipients, String subject, String message)
public void sendEmail(HashSet<String> addresses, String subject, String msgText)
public void sendEmail(javax.mail.internet.InternetAddress address, String subject, String msgText)
sendEmail
in interface EmailService
address
- subject
- msgText
- public void sendEmail(javax.mail.internet.InternetAddress[] recipients, String subject, String msgText)
sendEmail
in interface EmailService
recipients
- subject
- msgText
- Copyright © 2002–2019 itracker. All rights reserved.