forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Tranz on December 17, 2004, 12:17:45 pm

Title: registration email formatting
Post by: Tranz on December 17, 2004, 12:17:45 pm
When I received the registration email, it was not in plain text like it was for v 1.3.2. It was formatted, though in what I don't know. Because of that, the URL isn't automatically hyperlinked because it doesn't have HTML markup telling it is a link. Also, there are no line breaks.

This is a registration email sent from v 1.4.1 (The hyperlink is from the forum, but it's not like that in Outlook):
Quote
Thank you for registering at Take Thu Your username is : "test" Your password is : "****" In order to activate your account, you need to click on the link below or copy and paste it in your web browser. http://localhost:84/register.php?activate=5d8aa3bf223da1e928f7bf2b2322825a Regards, The management of Take Thu

This is from v. 1.3.2:
Quote
Thank you for registering at Take Thu!

Your username is : "test"
Your password is : "****"

In order to activate your account, you need to click on the link below
or copy and paste it in your web browser.

http://localhost:85/register.php?activate=17b23b84f6d577d75425ea5ec5ed5b5f

Regards,

The management of Take Thu!

Is it related to this (http://forum.coppermine-gallery.net/index.php?topic=11155.msg50447#msg50447)?
Title: Re: registration email formatting
Post by: Joachim Müller on December 17, 2004, 06:25:54 pm
yes, I'm afraid so.

Joachim
Title: Re: registration email formatting
Post by: Tranz on December 17, 2004, 06:52:10 pm
I tried Nibbler's suggested fix and the format looks the same. :-\\

However, that code was supposed to fix another issue which I did not have.
Title: Re: registration email formatting
Post by: Nibbler on December 17, 2004, 08:34:11 pm
My registration emails have line breaks  :-\\
Title: Re: registration email formatting
Post by: Tranz on December 17, 2004, 10:08:14 pm
I was hoping it would be due to my setting for Character encoding but when I changed it from Western to Default, it didn't make a difference. :-\\ And I have run CVS update to ensure I am using the most recent unaltered (by me) files.

So I guess it's down to server setup, but it works with v. 1.3.2 and I ran a diff to compare the files and can't seem to find the difference that would affect things like this.
Title: Re: registration email formatting
Post by: Nibbler on December 19, 2004, 04:47:23 am
The difference would be in the mailer. Adding nl2br()s into some places should fix the formatting problems.
Title: Re: registration email formatting
Post by: Joachim Müller on February 18, 2005, 08:10:49 am
does anybody volunteer to fix this?

Joachim
Title: Re: registration email formatting
Post by: Tranz on February 18, 2005, 08:56:25 am
I have encountered and resolved the same thing while working on the report to moderator function so I'll give this a try.
Title: Re: registration email formatting
Post by: Tranz on February 18, 2005, 11:10:36 am
I tested it out and it looks like it had already been fixed or addressed so will mark this accordingly.