System Information
-
Strapi Version: 3.6.1
-
Operating System: CentOS Plesk
-
Database: sqllite
-
Node Version: 12.0.0
-
NPM Version:
-
Yarn Version: 1.22.10
I have enable confirmation register email on Strapi.
May i know how to re-send user register confirmation email, when user click a button on front-end (Angular)
Hi @kelvinspaces,
You can do it by calling the endpoint your-strapi-host/auth/send-email-confirmation
.
Example:
import axios from 'axios';
// Request API.
axios
.post(`http://localhost:1337/auth/send-email-confirmation`, {
email: 'user@strapi.io', // user's email
})
.then(response => {
console.log('Your user received an email');
})
.catch(error => {
console.error('An error occurred:', error.response);
});
You can find more informations here: Roles & Permissions - Strapi Developer Documentation
TonyTR
3
HI @Stun3R
the e-mail leaves well but it’s empty. . any idea?
jasongs
4
Hi
I tried this and get 405 Method Not Allowed. What is the correct way