I'm calling server sdk in my appwrite function, I want to add 100+ members to a team from server sdk and then also send them emails for invite. My question being is this possible with server sdk? This would be 1 time process.
Currenly, I'm able to add the users but now able to send email
Email invite for what?
invite them to the organization team and then ask them to change password
because invitation can only be send from client sdk thats what in the docs. But if I use client side, I'd be rate limited
Hello Steven any suggestions?
You're not really making use of Appwrite's team invitation feature so, if I were you, I'd create a function to send an email
Yeah thought about this! And we could use our personal email to this. Why we're trying to use Appwrite teams here is because we want to a university to add their students and if we could directly create a membership for the team, the students would get an email and then they could change the password. Just how an lms functions.
Can we not really send invitations from server sdk? I'm confused because, even in server sdk it was asking me for the URL to be sent to the users. So I was confused.
With the served SDK, you can directly add the user to the team. You can't send them an invitation. It's just how Appwrite works currently.
That being said, if you absolutely have to use the server SDK, you can deploy a cloud function that does the following:
- Get the user's email.
- Send an email to the user stating that they're invited to team 'ABC'.
- Once the user clicks the accept invite button, call another function that registers the user, and adds them to the team.
via a client SDK, it sends them an invitation and they have to accept the invite in order to get added to the team. The server SDK allows you to force add the user into the team, without requiring them to accept it. That's why no email needs to be sent
I think that clears my doubt thank you. I'll just use mailgun or something with functions to send email. Thanks Steven
Someone can close this issue thank you :)
[SOLVED] A way to invite members from server sdk?
[SOLVED] How to invite user to team via Server SDK?
FYI, you should be able to update the title yourself too
Ohh didn't knew that
Recommended threads
- How to use Sites on selfhosted appwrite
whenever I try to create a site even with template it says 404 nginx error
- How to send Webhooks to internal network
When saving the URL for sending Webhooks, Appwrite checks if it's a valid external domain name so entering internal IP address or docker hostnames won't save th...
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...