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