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 voidclose()protected StringretrieveEmailAddress(UserModel user)voidsend(Map<String,String> config, String address, String subject, String textBody, String htmlBody)voidsend(Map<String,String> config, UserModel user, String subject, String textBody, String htmlBody)protected javax.mail.internet.InternetAddresstoInternetAddress(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:
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 javax.mail.internet.InternetAddress toInternetAddress(String email, String displayName) throws UnsupportedEncodingException, javax.mail.internet.AddressException, EmailException
- Throws:
UnsupportedEncodingExceptionjavax.mail.internet.AddressExceptionEmailException
-
-