CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Subscription Confirmation Request, HTML-format and {subscribe.url}
Pages: [1]

Author Topic: Subscription Confirmation Request, HTML-format and {subscribe.url}  (Read 1637 times)

useruseruser

  • Guest
Subscription Confirmation Request, HTML-format and {subscribe.url}
June 28, 2012, 09:17:19 am
Hi,
we upgraded to CiviCRM 4.1.3 and it seems {subscribe.url} does not seem to work in the HTML format of the subscription confirmation message in CiviMail's automated messages.

I have the following set in CiviMail (Subscription Confirmation Request), Body - TEXT Format:
Code: [Select]
You have a pending subscription to the {subscribe.group} mailing list. To confirm this subscription, click on this link: {subscribe.url}

Body - HTML Format:
Code: [Select]
You have a pending subscription to the {subscribe.group} mailing list. To confirm this subscription, click <a href="{subscribe.url}">here</a>

The user however receives this message (snippet from the Email's source):
Code: [Select]
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset=utf-8

You have a pending subscription to the Test subscriptions mailing list. To confirm this subscription, click <a href="{subscribe.url}">here</a>.

So it seems the {subscribe.url} in HTML is not replaced with the correct URL. The plaintext version works fine.

I tried to test this on the demo site, but it seems it did not send Emails.

I also tried to just have plain '{subscribe.url}' as HTML message, but it did not get replaced with the correct URL. Any ideas?

useruseruser

  • Guest
Re: Subscription Confirmation Request, HTML-format and {subscribe.url}
June 29, 2012, 02:19:31 am
I found an earlier thread about a problem with token replacement: http://forum.civicrm.org/index.php/topic,25100.0.html

In that thread there is a link to a filed and fixed issue that relates to this ( http://issues.civicrm.org/jira/browse/CRM-10431 ). Now the {subscribe.url} seems to work again :)
« Last Edit: June 29, 2012, 02:34:27 am by useruseruser »

jgregory

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 1
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.3.29
Re: Subscription Confirmation Request, HTML-format and {subscribe.url}
July 05, 2012, 04:40:36 pm
I have the same problem. As do all folks with 4.1.3 I suppose. How did you fix it? I followed and read the links you provided but was unsure how to fix the problem. Thanks for any help.

Noobie John
« Last Edit: July 05, 2012, 04:42:24 pm by jgregory »

jgregory

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 1
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.3.29
Re: Subscription Confirmation Request, HTML-format and {subscribe.url}
July 06, 2012, 10:14:01 am
Never mind. I figured it out. Just remove the space from line 162 of CRM/Utils/Token.php as described. Cheers.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Subscription Confirmation Request, HTML-format and {subscribe.url}

This forum was archived on 2017-11-26.