You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/appstore/modules/forgot-password.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,13 @@ The Forgot Password module has the following dependencies:
42
42
43
43
² Versions of the Forgot Password module below 4.1.0 (for Mendix 8) and 5.1.0 (for Mendix 9 and above), and those for Mendix 7 (3.xx) have a dependency on the deprecated [Email Module with Templates](https://marketplace.mendix.com/link/component/259/) module. We recommend that if you are using Mendix 8 and above, you upgrade to a later version using the instructions in [Migrate from Email Module with Templates to Email Connector](#migrate-email), below.
44
44
45
+
### 1.2 Features and Limitations
46
+
47
+
* Allows end-users to reset the password stored locally in your app.
48
+
* Allows end-users to signup for your app. This validates that the end-user has access to the email address they enter by sending a password reset email.
49
+
* Supports email aliases, in other words, the from address in email templates can be different from the SMTP account used to send the email.
50
+
* Supports multi-language email templates for sending password reset emails.
51
+
45
52
## 2 Installing the Forgot Password Module{#installing}
46
53
47
54
{{% alert color="info" %}}
@@ -98,14 +105,15 @@ In these instructions, it is assumed that your main module is `MyFirstModule`. I
98
105
1. Run the application.
99
106
1. Login as `demo_administrator` from [Demo Users](/refguide/demo-users/) and choose the **ForgotPasswordConfiguration** menu item.
100
107
1. In the **Reset Password Email** tab, do the following:
101
-
* Click **SMTP settings** to configure or validate SMTP settings for the [Email Connector](/appstore/connectors/email-connector/) or [Email with Templates](https://marketplace.mendix.com/link/component/259/) module (depending on the version of the Forgot Password module).
102
-
* Choose the **Reset email template** tab and provide the details for the email to be sent when an end-user has forgotten their password.
108
+
* Click **SMTP settings** to configure or validate SMTP settings for the [Email Connector](/appstore/connectors/email-connector/) or [Email with Templates](https://marketplace.mendix.com/link/component/259/) module (depending on the version of the Forgot Password module). In version 5.4.0 and above this will create an SMTP configuration which you will need to select.
109
+
* In version 5.4.0 and above, select the SMTP configuration you want to use for sending this email.
110
+
* From the dropdown, choose the **Reset email template** tab and provide the details for the email to be sent when an end-user has forgotten their password.
103
111
104
-
For version 5.3.0 and above, you can **Create** and **Edit** several reset email templates, each of which is linked to a [language](/refguide/language-settings/) you have added to your app. The template linked to the language in which the end-user sees the app will be used to send the email. If there is no template explicitly associated with the end-user's language, the template which is not associated with any language will be used.
112
+
For version 5.3.0 and above, you can **Create** and **Edit** several reset email templates, each of which is linked to a [language](/refguide/language-settings/) you have added to your app. The template linked to the language in which the end-user sees the app will be used to send the email. If there is no template explicitly associated with the end-user's language, the template which is not associated with any language will be used. For versions below 5.3.0, you will only be able to set up a single template.
105
113
106
-
For versions below 5.3.0, you will only be able to set up a single template.
114
+
For version 5.4.0 and above, the `fromAddress` in the email template does not have to be the same as the address in your SMTP configuration. See [Using Email Aliases](#email-aliases), below, for more information.
107
115
108
-
1. In the **Signup Email** tab, provide the details for the email sent when an end-user wants to sign up to use the app.
116
+
1. In the **Signup Email** tab, provide the details for the email sent when an end-user wants to sign up to use the app. These options are described above, for the **Reset Password Email** tab.
109
117
110
118
{{% alert color="info" %}}
111
119
To disable the signup functionality and use the Forgot Password module only for resetting passwords, do the following:
@@ -117,6 +125,18 @@ To disable the signup functionality and use the Forgot Password module only for
117
125
1. In the **Deeplink** tab, configure the deeplink to use the `ForgotPassword.Step3_DL_SetNewPassword` microflow.
{{% todo %}}Is this going to be version 5.4.0?{{% /todo %}}
131
+
132
+
From version 5.4.0 of the Forgot Password module, the `fromAddress` used in the email template does not have to be the same as the email address in the SMTP configuration. This provides flexibility, allowing you to send emails from different addresses while utilizing the same SMTP configuration for authentication.
133
+
134
+
Say, for example, your SMTP username is `user@example.com` and you have configured this account in your SMTP configuration. You could set the `fromAddress` in your email template to be any email address or alias you have control over, such as `sales@example.com`, `support@example.com`, or `ceo@example.com`, and this is what the recipient will see in the email they receive.
135
+
136
+
{{% alert color="info" %}}
137
+
You may have to configure an email alias on your SMTP server if you are using a `fromAddress` in your email template that is different from the email address of your selected SMTP account. Some SMTP servers will not send emails if the fromAddress is not associated with the SMTP account.
0 commit comments