# Invite users to the team by email ISSUE WITH API

**URL:** <https://forum.mattermost.com/t/invite-users-to-the-team-by-email-issue-with-api/6259>\
**Category:** Troubleshooting\
**Created:** [November 30, 2018, 1:43pm UTC](https://forum.mattermost.com/t/invite-users-to-the-team-by-email-issue-with-api/6259 "2018-11-30T13:43:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfador](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@alfador](https://forum.mattermost.com/u/alfador)\
**Post date:** [November 30, 2018, 1:43pm UTC](https://forum.mattermost.com/t/invite-users-to-the-team-by-email-issue-with-api/6259/1 "2018-11-30T13:43:01Z")

</div>

For feature requests, please see: [http://www.mattermost.org/feature-requests/](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](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 ☹
