Package org.keycloak.email
Class DefaultEmailSenderProvider
java.lang.Object
org.keycloak.email.DefaultEmailSenderProvider
- All Implemented Interfaces:
 EmailSenderProvider,Provider
- Author:
 - Stian Thorgersen
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDefaultEmailSenderProvider(KeycloakSession session, Map<EmailAuthenticator.AuthenticatorType, EmailAuthenticator> authenticators)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected Stringvoidvoidprotected jakarta.mail.internet.InternetAddresstoInternetAddress(String email, String displayName)  
- 
Constructor Details
- 
DefaultEmailSenderProvider
public DefaultEmailSenderProvider(KeycloakSession session, Map<EmailAuthenticator.AuthenticatorType, EmailAuthenticator> authenticators)  
 - 
 - 
Method Details
- 
send
public void send(Map<String, String> config, UserModel user, String subject, String textBody, String htmlBody) throws EmailException- Specified by:
 sendin interfaceEmailSenderProvider- Throws:
 EmailException
 - 
send
public void send(Map<String, String> config, String address, String subject, String textBody, String htmlBody) throws EmailException- Specified by:
 sendin interfaceEmailSenderProvider- Throws:
 EmailException
 - 
toInternetAddress
protected jakarta.mail.internet.InternetAddress toInternetAddress(String email, String displayName) throws UnsupportedEncodingException, jakarta.mail.internet.AddressException, EmailException - Throws:
 UnsupportedEncodingExceptionjakarta.mail.internet.AddressExceptionEmailException
 - 
retrieveEmailAddress
 - 
close
public void close() 
 -