Forgotten Password Email - With Link

rated by 0 users
This post has 5 Replies | 3 Followers

tlyle
Not Ranked
Posts 18
Points 270
By: tlyle
Posted: Tue, Oct 9 2007 11:52 AM

I am having an issue with the forgotten password email when the send a link option is used.

I looked in my emails.xml file, under the <email emailType="ForgottenPasswordWithToken" priority="High"> node.  Everything appears fine in there, however when the email is sent all relevant formatting is removed.  When the email is received by the users is looks similar to this:

[Name], You requested that your password for [SiteName] be sent to you via email. For security reasons, we have not emailed your password. To change your password, follow the link below which will take you to the change password page where you can enter a new password. If you did not request this email, you can safely ignore it. [forgottenpasswordurl] Thanks, [SiteName] team Sent from the IP Address: Paradise

However the format in the file is:

[Name],

You requested that your password for [SiteName] be sent to you via
email.  For security reasons, we have not emailed your password.

To change your password, follow the link below which will take you
to the change password page where you can enter a new password.

If you did not request this email, you can safely ignore it.

[forgottenpasswordurl]

Thanks,
[SiteName] team

Sent from the IP Address: Paradise

When we use the Forgotten password setting to send a new password, the email is formmatted exactly as shown in the xml file.  I tried changing the emails.xml file to use <textbody> and <htmlbody> nodes instead of the <body> node this is used.  The system selected the <textbody> node and as above removed all line breaks, and extra spacing.  The main problem we have is that the spacing around the [forgottenpasswordurl] is completely removed which causes the url to not be valid becaue the period preceding and the word Thanks after it are concatenated onto the URL.  Unless the user copies and pastes the exact url out of the text, they can not use the link. 

Can someone confirm this issue?

Thank you for your assistance.

 
  • Post Points: 20 |
tlyle
Not Ranked
Posts 18
Points 270
By: tlyle
Posted: Tue, Oct 9 2007 3:38 PM In reply to

Sorry forgot to mention my server is running CS2007.1

 
  • Post Points: 20 |
mkugelman
Not Ranked
Posts 1
Points 5
By: mkugelman
Posted: Thu, Nov 1 2007 9:09 AM In reply to

We are having a similar issue.  I've been trying to edit the xml to add html formatting to this e-mail, however whatever I do it doesn't seem to want to format the e-mail.  Is there any way to do this?  Thanks.

 
  • Post Points: 5 |
verschha
Not Ranked
Posts 3
Points 30
By: verschha
Posted: Wed, Nov 7 2007 11:09 AM In reply to

I think everybody is having this problem. When you view the headers of this particular email, you'll notice that it is send as content-type: text/plain;, while other emails (f.e. NewUserAccountPending) are send as content-type: text/html;.

Since I'm only using CS  for a couple of days, I'm not sure if and/or where you can change the content-type of this emails? I tried all kinds of things to put in line breaks (/r, /r/n, /n/n etc.) but nothing seams to work.

As a temporarliy solution I changed the body of this email in 1 long sentice, so at least the link is correct!

So the solution for this is:

  • change the content-type of this email (where can you do it?)
  • if that's not possible, find the linebreak character(s) for content-type: text/plain;
 
  • Post Points: 20 |
daveburke
Top 10 Contributor
Posts 3,257
Points 71,920
MVPs
By: daveburke
Posted: Thu, Nov 8 2007 10:59 PM In reply to

Ken's posting a KB on this soon, possibly tomorrow.

http://communityserver.org/forums/p/493293/605310.aspx#605310

Regards,
Dave

 

 
  • Post Points: 20 |
Timtim
Not Ranked
Posts 18
Points 315
By: Timtim
Posted: Mon, Mar 17 2008 1:44 PM In reply to

I had the same issue, when I installed the new dll files, I indeed get the newline characters in my emails. However, I want to send a customized html email to the users. I have already customized the email for users when they subscribe themselves.

In the mail <email emailType="NewUserAccountCreated" priority="High"> you have the tags <textbody> and <htmlbody>. So I changed in the e-mail <email emailType="ForgottenPasswordWithToken" priority="High"> the excisting <body> tag to <textbody> and added a <htmlbody>, but this is not used. How can I make CS (2007.1) use the htmlbody code for e-mail if it is there?


Edit: typo

 
  • Post Points: 5 |
Page 1 of 1 (6 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com