Skip to main content
Topic: Activation link as text instead of URL (Read 2708 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Activation link as text instead of URL

When registration verification received by the user, the activation link is in text format instead of url format. Anyway to change it.


Re: Activation link as text instead of URL

Reply #1

If you are using the standard method of require email activation, then try the following as a test.

In Members.subs.php  look for line 782
Code: [Select]
			sendmail($regOptions['email'], $emaildata['subject'], $emaildata['body'], null, null, false, 0);
change that line to
Code: [Select]
			sendmail($regOptions['email'], $emaildata['subject'], $emaildata['body'], null, null, true, 0);
That false to true should force an html copy to go out as well.  By default most forum emails don't go out as HTML, I think since they are more likely  to be flagged as spam, but TBH I'm not sure.

Re: Activation link as text instead of URL

Reply #2

O_o

It's a while I've seen a client/webmail not able to present anything that looks like an URL as a link.
Heck, it was an SMF feature same ages ago. lol
Bugs creator.
Features destroyer.
Template killer.

Re: Activation link as text instead of URL

Reply #3

Yup ... all of mine do, they do not care its plain text.

Maybe if the link gets longer than 70-ish characters and the client line breaks it, maybe the txt version gets mussed up.

Re: Activation link as text instead of URL

Reply #4

@Spuds

As told, there is a break in the link. I set it to False again.


Re: Activation link as text instead of URL

Reply #5

nods ... something for us to look at at some point

 

Re: Activation link as text instead of URL

Reply #6

Will it be fixed in the new release or anything can be done now?

Re: Activation link as text instead of URL

Reply #7

Section C of the rfc3986

https://www.ietf.org/rfc/rfc3986.txt

Says to put angle brackets before and after the url in plain text emails.

This is quoted below;

QuoteBerners-Lee, et al.         Standards Track                    [Page 51]
RFC 3986                   URI Generic Syntax               January 2005

      http://example.com/
   These wrappers do not form part of the URI.

   In some cases, extra whitespace (spaces, line-breaks, tabs, etc.) may
   have to be added to break a long URI across lines.  The whitespace
   should be ignored when the URI is extracted.

   No whitespace should be introduced after a hyphen ("-") character.
   Because some typesetters and printers may (erroneously) introduce a
   hyphen at the end of line when breaking it, the interpreter of a URI
   containing a line break immediately after a hyphen should ignore all
   whitespace around the line break and should be aware that the hyphen
   may or may not actually be part of the URI.

   Using <> angle brackets around each URI is especially recommended as
   a delimiting style for a reference that contains embedded whitespace.

   The prefix "URL:" (with or without a trailing space) was formerly
   recommended as a way to help distinguish a URI from other bracketed
   designators, though it is not commonly used in practice and is no
   longer recommended.

   For robustness, software that accepts user-typed URI should attempt
   to recognize and strip both delimiters and embedded whitespace.

   For example, the text

      Yes, Jim, I found it under "http://www.w3.org/Addressing/",
      but you can probably pick it up from <ftp://foo.example.
      com/rfc/>.  Note the warning in <http://www.ics.uci.edu/pub/
      ietf/uri/historical.html#WARNING>.

Re: Activation link as text instead of URL

Reply #8

@tino suggesting me to try this?

Re: Activation link as text instead of URL

Reply #9


I’m not sure where it’s set but yes I’d give it a try. I guess on the part where it’s generated?

Re: Activation link as text instead of URL

Reply #10

Interesting recommendation ... something we should try for sure! ... Thanks for pointing that out.

I tracked this one so we don't forget.
Last Edit: August 12, 2018, 09:10:53 pm by Spuds