• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Send invite without a user

Scheduled Pinned Locked Moved Unsolved Plugin Development
inviteacpplugin
4 Posts 3 Posters 575 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • magnusvhendinM Offline
    magnusvhendinM Offline
    magnusvhendin Swedes
    wrote on last edited by
    #1

    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 null, undefined or 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 Screenshot 2020-11-19 at 19.15.01.png

    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?

    gotwfG 1 Reply Last reply
    0
  • gotwfG Offline
    gotwfG Offline
    gotwf Community Rep
    replied to magnusvhendin on last edited by gotwf
    #2

    @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 protected] 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. 🎲

    1 Reply Last reply
    0
  • magnusvhendinM Offline
    magnusvhendinM Offline
    magnusvhendin Swedes
    wrote on last edited by
    #3

    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?

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #4

    Please report this issue on Github.

    1 Reply Last reply
    2

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development