Good day to all,
I’m currently setting up a strapi installation on an Ubuntu 20.04 LTS server.
However I have come across a bit of a pickle regarding the emails.
Does anyone have advice on how to setup the email to work when resetting a password or newly registered users.
I have setup sendmail on the server and on the strapi api, yet I get the pretty troublesome error:
"Auth.form.error.email.invalid"
Any advice on how to get this matter solved in as little time possible?
Greetings
Did you configure sendmail ? As far as I know, you need to configure it before using it. In addition, I heard others saying it is easier to use a third-party service such as sendgrid, mailgun, etc. than setting up sendmail.
Test mail seems to be working using sendmail,
But no such luck on:
forgot-password
or the confirm account trigger for:
/auth/local/register
(only these 2 have I tested)
Are you sending { data: { email: xyz@abc.com } } ?
you should use the json only with { email: xyz@abc.com }
The Auth controller will extract the email from ctx.request.body , it the email is inside the data the result will be “undefined” and the regex that tests the email will fail