Skip to content

Commit d3ff526

Browse files
author
adam-dupaski
committed
Merge branch 'development' of https://github.com/mendix/docs into development
2 parents 2c8fd75 + 9a4ae05 commit d3ff526

1 file changed

Lines changed: 25 additions & 5 deletions

File tree

content/en/docs/appstore/modules/forgot-password.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ The Forgot Password module has the following dependencies:
4242

4343
² 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.
4444

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+
4552
## 2 Installing the Forgot Password Module{#installing}
4653

4754
{{% alert color="info" %}}
@@ -98,14 +105,15 @@ In these instructions, it is assumed that your main module is `MyFirstModule`. I
98105
1. Run the application.
99106
1. Login as `demo_administrator` from [Demo Users](/refguide/demo-users/) and choose the **ForgotPasswordConfiguration** menu item.
100107
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.
103111

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.
105113

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.
107115

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.
109117

110118
{{% alert color="info" %}}
111119
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
117125
1. In the **Deeplink** tab, configure the deeplink to use the `ForgotPassword.Step3_DL_SetNewPassword` microflow.
118126
{{< figure src="/attachments/appstore/modules/forgot-password/configure-deeplink.png" >}}
119127

128+
### 2.1 Using Email Aliases{#email-aliases}
129+
130+
{{% 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.
138+
{{% /alert %}}
139+
120140
## 3 Testing the Forgot Password Module
121141

122142
1. Logout of the app.

0 commit comments

Comments
 (0)