Package de.xima.fc.mail.interfaces
Interface IMailContextFactory
-
- All Known Implementing Classes:
MailContextFactory
public interface IMailContextFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description javax.mail.Authenticator
getAuthenticator(String name, String password)
default IMailContext
getContextFor(String server, Integer port, javax.mail.Authenticator auth, EMailEncryption encryption)
IMailContext
getContextFor(String server, Integer port, javax.mail.Authenticator auth, EMailEncryption encryption, boolean allowUtf8)
-
-
-
Method Detail
-
getContextFor
@Deprecated default IMailContext getContextFor(String server, Integer port, javax.mail.Authenticator auth, EMailEncryption encryption)
- Parameters:
server
- Email server host.port
- Email server port.auth
- Authenticator, if the server requires any.encryption
- Encryption for the mail, if any.- Returns:
- A new mail context for sending mails.
-
getContextFor
IMailContext getContextFor(String server, Integer port, javax.mail.Authenticator auth, EMailEncryption encryption, boolean allowUtf8)
-
-