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) »
  • Automatic "View email in your browser" link
Pages: [1]

Author Topic: Automatic "View email in your browser" link  (Read 3341 times)

Martin Fuggle

  • I post frequently
  • ***
  • Posts: 172
  • Karma: 3
    • Travel and Photography
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 6.x and 7.x
  • MySQL version: 5.1.36-cll
  • PHP version: 5.3.6
Automatic "View email in your browser" link
May 14, 2010, 05:01:56 am
At the moment I create a newsletter in a Drupal node and then copy the html source into the CiviCRM mail facility.  This allows me to put a line at the top of the email like this "Email not displaying correctly? View it in your browser" and place a link to the Drupal node in the 'View it in your browser' text.  I would prefer to have the emails automatically archived (as they are) but a copy of the email accessible to an anonymous user without the need to create the Drupal node and create the link everytime.

Does anyone know if this is possible?

Cheers
Martin Fuggle

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Automatic "View email in your browser" link
May 14, 2010, 05:18:22 am
It doesn't now, but it would be nice to have indeed.

One issue would be to handle the mail token, eg. Dear {contact.first_name} should be different for you and me. (shouldn't be rocket science to manage the contact id and a checksum to be sure you can only see your customization and not mine).

Do you have coding skills available on your side or some funding possibilities ?

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

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Automatic "View email in your browser" link
July 02, 2010, 04:34:45 am
+1 for this idea.  And a quick note and extra bit of information, that it is almost implemented already. for this is here: http://drupal.demo.civicrm.org/civicrm/mailing/report?reset=1&html=1&mid=3 (though that link is likely not working if there aren't any sent mailings on the demo.  But if you want to see it, send a mailing and then click on Scheduled and Sent Mailings > Report > » View complete message.

All you would need to do is some contact substitution, which I guess you can do by passing the contact ID somehow.  And that has of course been done somewhere in the code already.

Then you could create a new token which is transformed into a link something like:

http://drupal.demo.civicrm.org/civicrm/mailing/report?reset=1&html=1&mid=3&cid=7

though I am guessing that cid is replaced by a contact hash right?

Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Automatic "View email in your browser" link
July 02, 2010, 05:39:32 am
1) you need to be authenticated to see them
2)hash is on the top of the cid, you'll need both (I think on the latest version, at one point it was generating both if I recall properly)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Automatic "View email in your browser" link

This forum was archived on 2017-11-26.