link in email question link in email question
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

link in email question

Started by c.dennis, March 09, 2007, 11:49:20 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

c.dennis

Hi, sending emails from my site works fine. However the link in a email is always in plain text, it's not clikcable as described in the text before the link.
For example "You have requested to a new password. If you would like to proceed with having a new password sent to you, click on the following link: " but the link following the text is in plain text.
The link in the "new password" mail also isn't clickable.
Theres nothing wrong with my emailprogram that i use, other emails with links in it are working fine.

What can i do / do i need to change so the link in the emails is clickable

Best regards.

nickfzx

perhaps your mail server turns all emails into plain text when they are sent.

have you messed with yourr coppermine install at all?

Joachim Müller

When receiving plain text emails, my email applications (MS Outlook @ work, Mozilla Thunderbird @ home) turn stuff that they identify as URLs into clickable links. This is something your email app does, not something within Coppermine. I'm convinced that you can turn this default behaviour off for both email apps (not sure though where exactly), so I suggest reviewing your email client setup.

If only the text "click on the following link" bothers you, then edit lang/yourlanguage.php, find the text and change it as you see fit (e.g. to "copy the URL below into the address bar of your browser and then hit enter").

Quote from: c.dennis on March 09, 2007, 11:49:20 AM
However the link in a email is always in plain text,
The mailer class used with Coppermine is capable to send plain-text-only emails as well as plain-text-plus-html-formatted emails. I'm not sure though if this is being used consistently within the whole app. For a start, post a link to your coppermine-driven gallery.

c.dennis

Thanks to reply.
Chaging the text in the email is an ultimate alternative i shall keep in mind. But i would still like to prefer that users can click it.

I did some other test with my email client (windows mail) and Coppermine.
Sending a plain-text-mail with a URL in it to my email adres does indeed automatically change the plain text URL into a clickable URL.
Sending a ecard from my Coppermine Gallery also includes a URL and this is clickable (but i guess ecard are already plain-text-plus-html-formatted emails)
So i can only come to the conclusion that the problem is with sending the email from Coppermine itself, correct me if i'm wrong.

do you have an idea to resolve this bug for me?

my Coppermine-driven gallery is at: http://natalia.cdennis.eu/Coppermine
i've also created a "registered" account for you;
username = tester
password = test
you can change the email adress in you profile, so you can send yourself an email to check the plain-text-(bug)

There aren't yet much pictures in it because i'm still fine tuning it.

Best regard.

Nibbler

I have tested it. It does send a multipart message but neither part actually contains an html link. forgot_password.php seems to be missing the make_clickable() call.

Dmitriy Katkov

Quote from: Nibbler on March 09, 2007, 10:49:31 PM
I have tested it. It does send a multipart message but neither part actually contains an html link. forgot_password.php seems to be missing the make_clickable() call.

Is there some way to fix it? I have the same problem. (1.4.8)

Dmitriy Katkov

Quote from: Dmitriy Katkov on April 04, 2007, 10:48:52 AM
Is there some way to fix it? I have the same problem. (1.4.8)

Please, forget about my question, I fixed this problem myself.  :)

Muurvaren

Quote from: Dmitriy Katkov on April 04, 2007, 11:13:20 AM
Please, forget about my question, I fixed this problem myself.  :)

Great, could you share it?


Dmitriy Katkov

Quote from: wadh on April 04, 2007, 11:25:32 AM
Great, could you share it?

Sure. I had similar problem, related to e-mail notification on comments (do not remember now, was it in original CPM148, or it was MOD).
At any way, DB_Input.php line:
     cpg_mail($picture_owner_data['user_email'], $subject, $mail_body);
had to be changed to:
     cpg_mail($picture_owner_data['user_email'], $subject, make_clickable($mail_body));

Hopefully, fix of problem in original post is similar (just add "make_clickable ()" call) as Nibbler said, but in forgot_password.php (for last parameter of one of cpg_mail call).