You will need to reference this
You will need to set the configuration in config/plugins.js
module.exports = ({ env }) => ({
email: {
logger: {
debug: console.log,
info: console.info,
warn: console.warn,
error: console.error
},
config: {
provider: 'sendmail',
settings: {
defaultFrom: 'your-email@email.com',
defaultReplyTo: 'your-email@email.com',
},
},
},
});
You will need to add all the appropriate options for sendmail. You can reference the sendmail docs here. @strapi/provider-email-sendmail - npm
But I believe for it to work you would need to have a email server running locally. Which is something I am not familiar with.
I typically use node-mailer or sendgrid they are much easier to setup.
Here is a video that covers sendgrid set up, the demo is using Strapi Cloud but the setup steps are the same when setting it up locally.