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:
However the format in the file is:
[Name], You requested that your password for [SiteName] be sent to you viaemail. For security reasons, we have not emailed your password. To change your password, follow the link below which will take youto 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:
[Name],
You requested that your password for [SiteName] be sent to you viaemail. For security reasons, we have not emailed your password.
To change your password, follow the link below which will take youto 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:
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.
Sorry forgot to mention my server is running CS2007.1
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.
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:
Ken's posting a KB on this soon, possibly tomorrow.
http://communityserver.org/forums/p/493293/605310.aspx#605310
Regards,Dave
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
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com