Developer forum

Forum » Development » Sending password to user

Sending password to user


Reply

I have a page that is protected with a password.

I whant the users to be able to get this password by entering there email and some other information on a page. At the same time they shoud be able to register for newsletter.

The password are then sent to their email.

 

How do I get the password from the page and send it in an email to the user and at the same time register them for newsletters?


Replies

 
Reply

Dynamicweb supports this feature per default. Using the Login_se_password.html template from the Extranet template folder will provide the user with the option having his password sent to his email address.

 
Reply
Sorensen wrote:

Dynamicweb supports this feature per default. Using the Login_se_password.html template from the Extranet template folder will provide the user with the option having his password sent to his email address.


Can you do this without the user beeing registerd in the extranet ?

 

 
Reply

I whant to use the simple password without any username that uses the login.html template in the password folder.

 

Is this not posible?

 
Reply

The password is found in the PagePassword field og the Page table. Just extract that and send it.

 
Reply
Sorensen wrote:

The password is found in the PagePassword field og the Page table. Just extract that and send it.


Does this involve doing some custom code?

If so can it be done without any custom code?

 

This is how it should work:

In my login.html template I create a link to another page whith the registry form for retreaving the password. The information should only be saved if the user chooses to subscribe to a newsletter.

 

How do I send the email to the user?

 

 

 

 

 

 
Reply

Yes, it involves custom code. You need to catch the event, that someone subscribes to a newsletter. No, there are no subscribers for that, but you could check if matching request valus are in the http header using a PageTemplateExtender or PageTitleProvider.

 

Dynamicweb does not provide functionality for coding a mail function. You'll have to code one. If you use ASPNet Email, you must obtain a license for that to the solution. Our license is only valid for the standard software.

 

You must be logged in to post in the forum