Developer forum

Forum » Templates » Mail-template

Reply

Is there any way one can change the layout and text of the automated email, that gets sent out, after you enter your email-adress in the "Jeg har glemt mit password!" field. As it is right now, it is quite simpel, with only the user and password. I wouldnt mind to add some text as well. I have looked in the Templates/ExtranetExtended folder and thought for obvious reasons that it might have been EmailForgottenPassword.html, one could use, but when I make changes in it, it doesnt show in the email.

 

What to do?

 

//Lars


Replies

 
Nicolai Høeg Pedersen
Reply
larsbb wrote:

Is there any way one can change the layout and text of the automated email, that gets sent out, after you enter your email-adress in the "Jeg har glemt mit password!" field. As it is right now, it is quite simpel, with only the user and password. I wouldnt mind to add some text as well. I have looked in the Templates/ExtranetExtended folder and thought for obvious reasons that it might have been EmailForgottenPassword.html, one could use, but when I make changes in it, it doesnt show in the email.

 

What to do?

 

//Lars


 

Hi Lars

 

Thats a good question. You can specify a template to use instead of the text mail:

 

In the login template place a hidden field with a reference to the template to use:

 

<

input name="ForgotPasswordMailTemplate" type="hidden" value"MailTemplate.html" />

 

Place template in /Files/Templates/Extranet/

available templatetags:

DWExtranetUsername

DWExtranetPassword

-->

 

 

Nice! Thanks a lot

 

Place template in /Files/Templates/Extranet/

available templatetags:

DWExtranetUsername

DWExtranetPassword

-->

 

In the login template place a hidden field with a reference to the template to use:

 

<


 

 
Reply
NP wrote:
larsbb wrote:

Is there any way one can change the layout and text of the automated email, that gets sent out, after you enter your email-adress in the "Jeg har glemt mit password!" field. As it is right now, it is quite simpel, with only the user and password. I wouldnt mind to add some text as well. I have looked in the Templates/ExtranetExtended folder and thought for obvious reasons that it might have been EmailForgottenPassword.html, one could use, but when I make changes in it, it doesnt show in the email.

 

What to do?

 

//Lars


 

Hi Lars

 

Thats a good question. You can specify a template to use instead of the text mail:

 

input name="ForgotPasswordMailTemplate" type="hidden" value"MailTemplate.html" />

 

 

 

 

Thanks you for your help ealier on. I was wondering whether it is possible to change the subject in the mail and also from whom it is? Right now these are noreply@dynamicweb.dk and "extranet password".

//Lars

 

Place template in /Files/Templates/Extranet/

available templatetags:

DWExtranetUsername

DWExtranetPassword

-->

 

In the login template place a hidden field with a reference to the template to use:

 

<

 
Nicolai Høeg Pedersen
Reply

Well - heres some more undocumented stuff:

creating a hidden field with this name will change the subject:

"ForgotPasswordMailSubject"

 

E-mail address comes from Control Panel, General. There you will find a field for mailaddress used for system messages. This can not be overruled by hidden fields.

 

 
Reply
NP wrote:

Well - heres some more undocumented stuff:

 

 

creating a hidden field with this name will change the subject:

"ForgotPasswordMailSubject"

 

E-mail address comes from Control Panel, General. There you will find a field for mailaddress used for system messages. This can not be overruled by hidden fields.


 

Once again, thanks!

 
Reply

Hi, found useful info in this thread - thanks!

 

One additional question: by use of hidden input field "ForgotPasswordConfirm" a confirmation message can by displayed (e.g. "...password sent...") - any chance of displaying an errormessage in a similar way? i.e. to notify the user in case of wrong e-mail adress.

 

(tried "ForgotPasswordFailed" etc, but no success...)

 

.jes

 
Reply
np wrote:

Hi Lars

 

Thats a good question. You can specify a template to use instead of the text mail:

 

In the login template place a hidden field with a reference to the template to use:

 

<

input name="ForgotPasswordMailTemplate" type="hidden" value"MailTemplate.html" />

 

Place template in /Files/Templates/Extranet/

available templatetags:

DWExtranetUsername

DWExtranetPassword

-->

 

 

Hello

I've tried to implement this into my solution with the following code:

 

<input name="ForgotPasswordMailTemplate" type="hidden" value="Forgotten_password.html" />

 

But I still receive the standard mail with the title Extranet password and the my username and my password in simple text.

 

I have attached my login file to make the problem clearer.

 

You must be logged in to post in the forum