Developer forum

Forum » Integration » Send password to some users

Send password to some users

Anders Ebdrup
Anders Ebdrup
Reply

Hi Dynamicweb,

 

When importing users with the user provider we only want to send out passwords to some of the users in the same import. Do you have some input how to achieve this?

 

Best regards, Anders


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Anders,
you can implement your own TableScript class and cache the users(user ids/usernames/emails and passwords if available) that you want to send passwords to. In the JobFinished notification subscriber you can then get the users objects from database(if you didn't have the passwords in the source) from the cached users collection and check their passwords and send them (for example using Dynamicweb Dynamicweb.Mailing.EmailHandler.Send method

Regards, Dmitrij

 

You must be logged in to post in the forum