Unclear about using TargetID in Messaging with serverless function
- 0
- Self Hosted
- Functions
- Messaging
- Flutter

I want to write a serverless function using Messaging and a Custom SMTP server to send an email to a user. Sounds simple enough, right? But I don't get it. I can use the UserId or if I have just the email address I can get the UserId with a query, but do I need another query to get the targetID (of the email) for sending a message? That seems pretty laborious. Is there another way or am I thinking about this all wrong?

Unclear about using TargetID in Messaging with serverless function
Recommended threads
- CERTIFICATE_VERIFY_FAILED: application v...
I am using dart file with API keys to call the cloud function I am performing login req to cloud function and this happened Error info ```Error: HandshakeExcept...
- Function URLs can't be accessed
Howdy all! I'm not too certain if this is an issue with Coolify or with my DNS settings possibly even, so I do have an issue open there as well with probably al...
- 404 page not found
Hi, I'm trying to run Appwrite on a different port (e.g., 7777) because I already use Apache to handle domain-based redirection using ProxyPass. For example, I ...
