Open greyskin opened 2 years ago
The Locomotive CMS documentation references the following fields which allow a custom SMTP namespace in the metafields_schema.yml file:
Using the auth template site here...
...and assuming the following in metafields_schema.yml:
smtp_settings: label: Outgoing Email fields: server: label: SMTP Server type: string username: label: Username type: string password: label: Password type: string port: label: Port type: string
...and the following data (replace with non-dummy) in site.yml:
metafields: smtp_settings: server: mailserveraddress.com username: email@address.com password: password port: 123
...and the following fields in on the forgot_password.liquid page:
<input type="hidden" name="auth_email_smtp_namespace" value="smtp_settings"> <input type="hidden" name="auth_email_smtp_address_alias" value="server"> <input type="hidden" name="auth_email_smtp_port_alias" value="port"> <input type="hidden" name="auth_email_smtp_user_name_alias" value="username"> <input type="hidden" name="auth_email_smtp_password_alias" value="password">
...we should be able to send a password reset email when a user registered to the site enters their email address in the Forgot Password form.
It doesn't work.
But if we use the default setup of the auth template site everything works as expected.
@did this might need to be moved to Steam?
The Locomotive CMS documentation references the following fields which allow a custom SMTP namespace in the metafields_schema.yml file:
Using the auth template site here...
...and assuming the following in metafields_schema.yml:
...and the following data (replace with non-dummy) in site.yml:
...and the following fields in on the forgot_password.liquid page:
...we should be able to send a password reset email when a user registered to the site enters their email address in the Forgot Password form.
It doesn't work.
But if we use the default setup of the auth template site everything works as expected.