Package com.tivoli.am.fim.email
Class EmailSender
- java.lang.Object
-
- com.tivoli.am.fim.email.EmailSender
-
public class EmailSender extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
EmailSender.SendStatus
static class
EmailSender.TlsHelper
-
Constructor Summary
Constructors Constructor Description EmailSender(SmtpServerConnection conn)
Construct an Email sender with the specified SMTP hostname, SMTP port, SMTP username, and SMTP password.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmailSender.SendStatus
send(Email email)
Send the specified email. startTls
-
-
-
Constructor Detail
-
EmailSender
public EmailSender(SmtpServerConnection conn)
Construct an Email sender with the specified SMTP hostname, SMTP port, SMTP username, and SMTP password.- Parameters:
hostname
- The SMTP hostname.port
- The SMTP port.username
- The SMTP username.password
- The SMTP password.
-
-
Method Detail
-
send
public EmailSender.SendStatus send(Email email)
Send the specified email. startTls- Parameters:
email
- The email.- Returns:
- a SendStatus object to indicate the success of delivery.
-
-