Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: link in email question  (Read 8642 times)

0 Members and 1 Guest are viewing this topic.

c.dennis

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
link in email question
« on: March 09, 2007, 11:49:20 am »

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.
Logged

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: link in email question
« Reply #1 on: March 09, 2007, 04:40:57 pm »

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

have you messed with yourr coppermine install at all?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: link in email question
« Reply #2 on: March 09, 2007, 06:59:46 pm »

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").

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.
Logged

c.dennis

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: link in email question
« Reply #3 on: March 09, 2007, 10:26:57 pm »

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.
Logged

Nibbler

  • Guest
Re: link in email question
« Reply #4 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.
Logged

Dmitriy Katkov

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
Re: link in email question
« Reply #5 on: April 04, 2007, 10:48:52 am »

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)
Logged

Dmitriy Katkov

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
Re: link in email question
« Reply #6 on: April 04, 2007, 11:13:20 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.  :)
Logged

Muurvaren

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 37
    • Muurvaren, digitale fotografie
Re: link in email question
« Reply #7 on: April 04, 2007, 11:25:32 am »

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

Great, could you share it?

Logged

Dmitriy Katkov

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
Re: link in email question
« Reply #8 on: April 05, 2007, 07:37:35 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).


Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.