Skip to content

Commit 4809617

Browse files
committed
Using email aliases
1 parent 4e6a022 commit 4809617

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ In these instructions, it is assumed that your main module is `MyFirstModule`. I
108108
* 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).
109109
* Choose the **Reset email template** tab and provide the details for the email to be sent when an end-user has forgotten their password.
110110

111-
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.
111+
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.
112112

113-
For versions below 5.3.0, you will only be able to set up a single template.
113+
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.
114114

115-
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.
115+
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.
116116

117117
{{% alert color="info" %}}
118118
To disable the signup functionality and use the Forgot Password module only for resetting passwords, do the following:
@@ -124,6 +124,18 @@ To disable the signup functionality and use the Forgot Password module only for
124124
1. In the **Deeplink** tab, configure the deeplink to use the `ForgotPassword.Step3_DL_SetNewPassword` microflow.
125125
{{< figure src="/attachments/appstore/modules/forgot-password/configure-deeplink.png" >}}
126126

127+
### 2.1 Using Email Aliases{#email-aliases}
128+
129+
{{% todo %}}Is this going to be version 5.4.0?{{% /todo %}}
130+
131+
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.
132+
133+
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.
134+
135+
{{% alert color="info" %}}
136+
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.
137+
{{% /alert %}}
138+
127139
## 3 Testing the Forgot Password Module
128140

129141
1. Logout of the app.

0 commit comments

Comments
 (0)