Mattermost Peer-to-Peer Forum

Invite users to the team by email ISSUE WITH API


#1

For feature requests, please see: http://www.mattermost.org/feature-requests/.

For troubleshooting questions, please post in the following format:

Summary

Issue in one concise sentence

Can’t Invite users to the team by email with API

Steps to reproduce

Type:

curl --header “Authorization: Bearer XXXXXX” --request POST --data ‘[“mama.tati@matters.com”]’ https://mattermost.xxxxx.com/api/v4/teams/a3i4n5mt7jditxqh4rrbungp6o/invite/email

Expected behavior

Describe your issue in detail
To send an e-mail to the user

Observed behavior

What did you see happen? Please include relevant error messages and/or screenshots.
Getting this output
{“id”:“api.team.invite_members.disabled.app_error”,“message”:“Email invitations are disabled.”,“detailed_error”:"",“request_id”:“3hghi3edj3rjmqrmomdxe8tx1e”,“status_code”:501}

How can I enable API TEAM INVITE MEMBERS APP error.
I searched everywhere but I can’t make it send mails.
The MAIL server is configured. I’m so frustrated :frowning: