I have created an 'Invalid email address' user group for users with invalid email addresses - they get moved in to this group whenever an email bounces back as invalid. I use a conditional statement to show a text message at the top of every screen to people in this category asking them to update their email address.
My problem is that when people in this category update their email address they should be automatically moved to the 'users awaiting confirmation' group - but they're not.
I have created an 'Invalid email address' user group for users with invalid email addresses - they get moved in to this group whenever an email bounces back as invalid. I use a conditional statement to show a text message at the top of every screen to people in this category asking them to update their email address.
My problem is that when people in this category update their email address they should be automatically moved to the 'users awaiting confirmation' group - but they're not.
Instead of changing a users primary group to 'Invalid email address' it's probably better to assign 'Invalid email address' as a secondary group.
Then when a user changes his email address his primary group will be changed to 'awaiting confirmation' (as per normal). It's at this point, when the primary usergroup is changed) that the code could be altered to drop the secondary group of 'Invalid email address'.
I think this logic is better... now all I need is someone with some coding knowledge - anyone able to assist?
Instead of changing a users primary group to 'Invalid email address' it's probably better to assign 'Invalid email address' as a secondary group.
The only problem with this idea is... when using the adminCP to email users you can only make selections based on the 'primary usergroup'; not the 'secondary usergroup' so the email script would probably need some hacking.