I checked this out but it’s not quite what I’m looking for. This UI invites someone to the site as a new account, which they can and must set up. On my site, I create users via the API because I want them to have user and display names matching my database of invitees (and not whatever they might choose, like
lolcat456, or else the default
somename, auto-assigned because their email address is
My user creation code works correctly, but the weak point in my workflow is that when I run my code to create the user, the system sends them the activation email, and people aren’t getting them (or maybe they are but they don’t recognize the sender and so they delete without reading).
So, I’d like to create the user as I am doing now, but get the activation link that the system would have sent and then send it myself, embedded in the friendly welcome message that I already send. This way, there will only be one email, from someone they know, so they’re much more likely to read it and click through.