Package overit.geocall.mail
Class MailServer
java.lang.Object
overit.geocall.mail.MailServer
- Direct Known Subclasses:
MicrosoftGraphServer,SmtpServer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theAuthenticatorabstract voidSend the email through the smtp servervoidsetAuthenticator(Authenticator authenticator) Sets theAuthenticator
-
Field Details
-
authenticator
-
-
Constructor Details
-
MailServer
public MailServer()
-
-
Method Details
-
send
Send the email through the smtp server- Parameters:
m- TheMessageto send- Throws:
EmailException- If an error occurs
-
setAuthenticator
Sets theAuthenticator- Parameters:
authenticator- TheAuthenticator
-
getAuthenticator
Returns theAuthenticator- Returns:
- The
Authenticator
-