Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

User import and registration emails #53

Closed
timkelty opened this issue Apr 22, 2015 · 19 comments
Closed

User import and registration emails #53

timkelty opened this issue Apr 22, 2015 · 19 comments
Labels
Milestone

Comments

@timkelty
Copy link
Contributor

I'm wondering what happens by design with the registration emails when I import a bunch of users with this?

Ideally, I need to import users and send registration emails.

@boboldehampsink
Copy link
Owner

You can set this at user settings right?

@timkelty
Copy link
Contributor Author

You mean per-user?

I could go into each imported user and click "Send password reset email", but that's what I'm trying to avoid, as I'm importing hundreds of users.

I would also rather users got the "activation" email and not the password reset email, but that's not as crucial.

@boboldehampsink
Copy link
Owner

Ah you want to set this per user?

@timkelty
Copy link
Contributor Author

I want each user to get an activation email, yes.

@boboldehampsink
Copy link
Owner

But not control this per user - you just want one setting so they all get it.

@timkelty
Copy link
Contributor Author

Right.

Maybe an "import as pending/send activation email" setting would make sense?
When you create a user in Craft, it defaults to pending, but Import sets them as active.

@boboldehampsink
Copy link
Owner

I don't think so - you can use this setting? screen shot 2015-04-23 at 08 53 05

@timkelty
Copy link
Contributor Author

You're right - that setting controls if they get imported as pending/active.
I don't think Import respects this value, though. Users are always imported as active.

So, my original question/feature request remains: how would I send registration emails to imported users.

Thanks!

@boboldehampsink
Copy link
Owner

I don't really get it. I've just tested this, and while importing a whole bunch of registration emails came in...

@timkelty
Copy link
Contributor Author

Weird! Ok, let me run some more tests.
What setting was the "Verify email addresses?" in when you tested?

@boboldehampsink
Copy link
Owner

It was on

@timkelty
Copy link
Contributor Author

Ok. Thanks a bunch for testing.
I'll try it again today and see what happens.

@boboldehampsink
Copy link
Owner

Did you get any new results?

@timkelty
Copy link
Contributor Author

Hey - so sorry, got slammed with work. I'll let you know as soon as I test.

@luwes
Copy link

luwes commented Sep 7, 2015

At my end all users get imported as active by default also. Is there a way to put them in pending and also send the activation email?

@migswd
Copy link

migswd commented Sep 17, 2015

For me checked the "Verify email addresses?" option but I receive no emails on import.

@boboldehampsink
Copy link
Owner

You should be able to use an extra field called "Status", and just set it to "pending" there. Let me know if that works for you.

@luwes
Copy link

luwes commented Oct 10, 2015

Thanks for the reply. I ended up adding a line of code for that in Import_UserService,
$element->pending = true;

@boboldehampsink
Copy link
Owner

Thanks @luwes, i've added that for the next release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants