public class EmailSender
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
EmailSender.SendStatus |
static class |
EmailSender.TlsHelper |
| Constructor and Description |
|---|
EmailSender(SmtpServerConnection conn)
Construct an Email sender with the specified SMTP hostname, SMTP port,
SMTP username, and SMTP password.
|
| Modifier and Type | Method and Description |
|---|---|
EmailSender.SendStatus |
send(Email email)
Send the specified email. startTls
|
public EmailSender(SmtpServerConnection conn)
hostname - The SMTP hostname.port - The SMTP port.username - The SMTP username.password - The SMTP password.public EmailSender.SendStatus send(Email email)
email - The email.