Class SignUpConfiguration.EmailConfig
java.lang.Object
com.smartfoxserver.components.signup.SignUpConfiguration.EmailConfig
- Enclosing class:
SignUpConfiguration
Configures the options related to sending an email response, after a successful user registration.
Emails can be fully customized by creating an HTML template and storing it under the Extension's folder or any sub-folder under that same path. Email templates use simple place holders to inject dynamic content from code. The pre-defined place holders are:
- ${userName} for the user name
- ${password} for the user password
IMPORTANT:
In order to be able to send emails from SmartFoxServer you will need to configure the Mailer Service from the AdminTool>Server Configurator.-
Field Summary
FieldsModifier and TypeFieldDescription(Optional) a map of place holders and relative values to be populated in the email body.The email's from addressbooleanTurns on/off the automated emailintDetermines how many times a user can request the Activation email to be re-sent in case the previous one wasn't received.The email's subjectThe path to the email HTML template relative to the Extension's folder. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
isActive
public boolean isActiveTurns on/off the automated email -
template
The path to the email HTML template relative to the Extension's folder. -
fromAddress
The email's from address -
subject
The email's subject -
customEmailFields
(Optional) a map of place holders and relative values to be populated in the email body.This can be useful to dynamically generate HTML content in the response email.
-
maxResendTimes
public int maxResendTimesDetermines how many times a user can request the Activation email to be re-sent in case the previous one wasn't received. (default = 3 times)
-
-
Constructor Details
-
EmailConfig
public EmailConfig()
-