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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Civimail: "click here to read online" feature
Pages: [1]

Author Topic: Civimail: "click here to read online" feature  (Read 3853 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Civimail: "click here to read online" feature
March 10, 2010, 11:13:35 am
Hi,

Having a new url like /civicrm/mailing/view?contactid=xxx&mailingid=yyy that would generate the body of the mail, with the token replacement and display it.

Rationale: shit happens with html email and having a "click here to read online" is nice as the first line.

and it can be put as well in the text part, of course.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Civimail: "click here to read online" feature
March 10, 2010, 11:41:21 am
After a discussion with lobo, it needs a checksum like feature (so you can't use that to see contact details that aren't yours).

Might be useful as well on the emailing activity, as the format today isn't that good.

Is there already a function to generate a permanent checksum (as opposed to the 8 days one) ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Civimail: "click here to read online" feature
March 10, 2010, 11:54:17 am
This what you were wanting? http://forum.civicrm.org/index.php/topic,8021.msg34724.html#msg34724
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Re: Civimail: "click here to read online" feature
July 21, 2010, 07:41:43 am
Were you ever able to set up the "view online" feature?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Civimail: "click here to read online" feature
July 25, 2010, 05:26:10 pm
Hi,

We did create a node type newsletter that fetches the right content and used it both to generate the newsletter body and as the online readable version.

Don't have personalisation (dear XXX) but not a big deal.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Re: Civimail: "click here to read online" feature
July 26, 2010, 05:57:45 pm
Would you be willing to share how you accomplished that?

Thanks!

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: Civimail: "click here to read online" feature
November 30, 2010, 02:12:33 am
this looks interesting - has anyone achieved this?
Kabissa - Space for Change in Africa http://kabissa.org

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Civimail: "click here to read online" feature
November 30, 2010, 04:54:27 am
Hi,

That has nothing to do with civicrm, just templating in drupal to generate the html. This depends very much on what you want to put in our newsletter.

http://www.pes.org/en/redalert/pes-council-2010-0

The admins got an extra few lines to make it easier to copy paste (namely, take the relevant content and put it in a textarea). Again, probably quite specific on how you've coded the html.

Code: [Select]
<script type="text/javascript">
jQuery(function() {
  htmlvalue = '<table>'+$('#newsletter').html();
  end7 = htmlvalue.indexOf('<!-- END 7 -->');
  htmlvalue = htmlvalue.substring(0,end7);
  teaser =  "if you can't read this e-mail, you can <a href='http://www.pes.org/en/redalert/pes-council-2010-0'>read it in your browser:</a> or <a href='http://www.pes.org/en/redalert/pes-council-2010-0?print=1'>Print it</a>. ";
 
  $("#htmlvalue").val(teaser+"<br/>"+htmlvalue);
 
  $(".fullwidth").width(798);
});
</script>
 
 
</head>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
<textarea id="htmlvalue" style="width:100%; height:300px;"></textarea>

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: Civimail: "click here to read online" feature
December 02, 2010, 03:12:51 am
I feel puzzled by all this, or maybe I misunderstood where this thread has gone.

In CiviMail there is a link to "» View complete message" which pops up a new window to display the message that was sent out, at a link like: http://www.foo.com/civicrm/mailing/report?reset=1&html=1&mid=89

This is the original HTML that was sent out and has no token replacement or personalized info in it. Is there a way to provide a public link to this page, which can be included as a token in the message?  Perhaps deciding if there will be a public link could be a setting for each mailing as it is sent out.

The alternative is to manually copy and paste this HTML into a web page and store it on the server.

Cheers,

Tobias
Kabissa - Space for Change in Africa http://kabissa.org

pike67

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 0
  • CMS version: drupal7
Re: Civimail: "click here to read online" feature
October 03, 2012, 02:52:02 am
Quote from: xavier on July 25, 2010, 05:26:10 pm
We did create a node type newsletter that fetches the right content and used it both to generate the newsletter body and as the online readable version.

In Drupal.

I did the same here, but the editors still have to copy/paste the html source of the Drupal body editor into the CiviCRM mail editor. Did you find any way to automate that ?

one can dream,
*-pike

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: Civimail: "click here to read online" feature
October 23, 2012, 03:00:38 pm
sorry, just came across this now. the problem has gone away for me with an upgrade to civicrm - public newsletters can be accessed by the public. you just have to link to them. see this link for an example: http://www.kabissa.org/newsletters
Kabissa - Space for Change in Africa http://kabissa.org

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Civimail: "click here to read online" feature

This forum was archived on 2017-11-26.