User password retrieval email text

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/9/2017 9:47:41 AM
Gravatar
Total Posts 41

User password retrieval email text

Hi,

Can anyone tell me where the text of emails such as the 'forgotten password' one comes from?  I mean the one that starts

"A request was just submitted to send your <sitename> password for the User <useremail>....."

I can't find a file with this text in it, but I may not be looking in the right place(s)!!

Thanks.

1/9/2017 10:00:13 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: User password retrieval email text

All of these types of template files are located under [site path]\Data\MessageTemplates. The particular ones you are looking for are:

  • en-US-HashedPasswordEmailMessage.config
  • en-US-PasswordEmailMessage.config

 

1/9/2017 10:20:24 AM
Gravatar
Total Posts 41

Re: User password retrieval email text

Brilliant - thank you so much!

I was looking in the App_GlobalResources folder...

1/10/2017 6:04:01 AM
Gravatar
Total Posts 41

Re: User password retrieval email text - Follow up Q

Hi again,

I have a follow-up question on this.  How can I get simple html into the email body?  It is just rendering as raw html if I enter it as normal.  I've tried replacing < and > with &lt; and &gt; respectively (which works for screen rendered content via resource files) but that is rendered as-is too.

Is this possible?

1/10/2017 8:23:53 AM
Gravatar
Total Posts 2239

Re: User password retrieval email text

Hi Mike,

Add the following to your user.config and then 'touch' the web.config.

<add key="UseHtmlBodyInPasswordRecoveryEmail" value="true" />

HTH,
Joe D.

1/12/2017 6:14:10 AM
Gravatar
Total Posts 41

Re: User password retrieval email text

Thanks Joe!

Yes, that's exactly what I needed. 

Is there an exhaustive list of config keys somewhere in the documentation? It would be a great help - for example I would have been able to spot that this was a configurable option if I'd been able to look through such a list.

Thanks again,

 

Mike

You must sign in to post in the forums. This thread is closed to new posts.