Package org.keycloak.email
Class DefaultEmailSenderProvider
- java.lang.Object
-
- org.keycloak.email.DefaultEmailSenderProvider
-
- All Implemented Interfaces:
EmailSenderProvider
,Provider
public class DefaultEmailSenderProvider extends Object implements EmailSenderProvider
- Author:
- Stian Thorgersen
-
-
Constructor Summary
Constructors Constructor Description DefaultEmailSenderProvider(KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected String
retrieveEmailAddress(UserModel user)
void
send(Map<String,String> config, String address, String subject, String textBody, String htmlBody)
void
send(Map<String,String> config, UserModel user, String subject, String textBody, String htmlBody)
protected javax.mail.internet.InternetAddress
toInternetAddress(String email, String displayName)
-
-
-
Constructor Detail
-
DefaultEmailSenderProvider
public DefaultEmailSenderProvider(KeycloakSession session)
-
-
Method Detail
-
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 javax.mail.internet.InternetAddress toInternetAddress(String email, String displayName) throws UnsupportedEncodingException, javax.mail.internet.AddressException, EmailException
- Throws:
UnsupportedEncodingException
javax.mail.internet.AddressException
EmailException
-
-