@julian There didn't appear to be a way of managing this number plus I assumed there are already lots of things node already does to modify this number.
I wanted completely control of it, including the ability to "spend" it on things down the road.
Is it possible to send an email invitation without having a user attached to it?
I'm trying to use
User.sendInvitationEmail(uid, email), but if I send in
0 as the uid I get no feedback that it's wrong. What I do get is, in the ACP, no ability to delete the invite.
All I get is
I have a locked down forum but I'm working on a feature to automate the invitation process based on some parameters. So in the end I need to run something automagically.
The delete function used is this I guess?
@magnusvhendin I do not think this would be wise. Most (all?) SMTP relays will require a sender address before accepting/relaying mail. Hence, I'd suggest you create an address such as "email@example.com for such purposes. Then associate that email address with a user. Maybe one you don't use for other stuff?
Or maybe I do not understand you clearly: You ARE already using valid value for email address and just want to omit UID? Which seems like easy enough for the dev inclined. But I wonder what this really achieves?
Anyways, just a couple thoughts since none have yet been forthcoming... Good luck.
Thank you for the response @gotwf!
The issue is that I cannot delete an invite if I leave the inviter uid blank. I would think that an error would've been sent if this would cause problems. I have added a field in my plugin that will let admins select who will work as the inviter. in my case it's a system user, like no_reply@service...
The sender is a no-person email so that's not the issue. The issue is that the invite needs to (in the system) be sent my a user. Which doesn't make sense in my opinion. It's great if an admin sends an invite, but why prevent me from deleting an invite that doesn't have an error?
Please report this issue on Github.