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) »
  • CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
Pages: [1]

Author Topic: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?  (Read 3362 times)

ClayWhipkey

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
June 27, 2008, 05:04:08 pm
I have upgraded on my QA server from 1.9 TO 2.0.4 and have been getting the CiviMail stuff set up.  One thing I liked about 1.9 is that when a contact was included in a CiviMail blast, there was an activity record saved for that email.  This appears to be gone in 2.0.4

Is mine broken?  Was this change by design?  Just curious if that is correct and what the reasoning was behind that change.

p.s. thanks for a great application.  ;D

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
June 27, 2008, 05:16:22 pm

can u check and see if this happens on our demo server. i'm pretty sure we did not remove the functionality, so might be some configuration issue/bug

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

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: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
June 30, 2008, 02:07:26 pm
Pretty sure I checked this and had noticed that Activities did not list civiMail mailings and assumed it had always been that way.
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

tonyg

  • Guest
Re: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
June 30, 2008, 03:05:37 pm
I just checked the demo and it looks like it is still tracking email recipients in a contact's activities. I went to browse sent mailings, clicked on a report of a sent mailing, clicked on a recipient and went to that recipients activities tab, which listed the civimail email as an activity.

i like this feature as well and good to see it is still there.

ClayWhipkey

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
Re: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
July 01, 2008, 01:19:55 pm
I went to sent mailings and opened the mailing that worked successfully from version 2.0.4 and clicked through to the recipient.  The activities tab DID have records of Civimail mailings that happened on version 1.9, but not the one from version 2.0.4.

I couldn't find the login info for the administrator site for the Joomla demo.  How do I log in to the demo admin to test this feature there?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
July 01, 2008, 01:48:16 pm

You will need to test this on our drupal demo. We do not expose the joomla admin user for demo purposes

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

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: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
July 04, 2008, 06:27:04 am
As far as I can tell (and not sure how to test on demo since civiMail not set up there) if a TestMailing is sent, it shows in Activities of both the 'sender' and the 'recipients'.
In doing so it shows a single Activity in the 'senders' record for each separate address that it sends to. So if I send a TestMailing to 10 people it shows as 10 Activities in my record.

However the real message is not recorded - and if it was it would probably cause other problems as when we send an email to 10,000 it would record 10,000 Activities in the 'senders' record.

I think what would be ideal would be that the Activity of sending a bulk mail is recorded as a single item in the senders records - with a link to the Mailing rather than to the recipient.

I also think it would be helpful if the bulk mail could be recorded in the recipients record, including an indication of if it was bounced, opted-out etc.
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

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
July 04, 2008, 01:22:09 pm

hey pete:

hope u r having fun in the UK :)

1. CiviMail is enabled on demo. It however sends mail to a big black hole, so all mail is considered delivered (to avoid potential spam issues). Someone had disabled the component on demo via the global settings file

2. we'll be migrating the activity record to a new more efficient model which was introduced in 2.0. http://issues.civicrm.org/jira/browse/CRM-2656. this is scheduled for a fix for send email in 2.1 (thanx to a consulting contract) and we'll probably push a similar fix for civimail in either 2.1 or 2.2

3. you can get the info for what happened to a mailing with regard to a specific recipient by doing a left join with the appropriate civicrm_mailing_event_* tables. that is a good normalized way of storing history data which changes on a / mailing basis

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
July 07, 2008, 04:04:48 am
Hi,

Definitely, it'd be great to add the email on the activity for the recipient indeed (but not on the sender).

Question: Am I right to assume I could do the left join lobo's trick on a custom search (and modify the activity template to add a link to that ?

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

ClayWhipkey

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
Re: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
July 07, 2008, 09:06:36 am
Just so there's no confusion, I'll re-state the issue:

  • I am now using CiviCRM 2.0.4 with Joomla 1.0.15
  • Sending an email using the email feature within a contact in version 2.0.4 - This DOES leave an activity record for the sender and recipient
  • When I browse the CiviMail campaigns created and sent using version 1.9 - recipients DO have the campaign emails listed in their Activity records
  • When I create a new CiviMail campaign email in version 2.0.4 (on Joomla) the emails are delivered properly but - the recipients of these new CiviMail campaigns DO NOT have any record of it in their Activity tab.
  • I have created a CiviMail campaign on the Drupal demo site, but its not getting sent out.  I set it over an hour ago.  What frequency is the cron set for on that demo?

If its a configuration issue, but everything else works correctly on CiviMail (delivery, unsubscribes, opt outs, bounces), what setting would I look for to tell it to save CiviMails in the Activity tab?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
July 07, 2008, 03:12:53 pm

1. there is no cron job on demo. we do it manually:

http://drupal.demo.civicrm.org/civicrm/mailing/queue?reset=1

2. check:

http://drupal.demo.civicrm.org/civicrm/contact/view/activity?q=civicrm/contact/view/activity&cid=105&force=1&crmSID=8_d
http://drupal.demo.civicrm.org/civicrm/contact/view/activity?q=civicrm/contact/view/activity&cid=25&force=1&crmSID=8_d

there is an activity record for the activity test civimail

There is a possibility that this is a bug with the joomla version (i think that is not very likely)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ClayWhipkey

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
Re: CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?
July 07, 2008, 04:21:21 pm
OK, I added some error tracking in the code to try to get what is happening.  On line 351-354 of CRM/Mailing/BAO/Job.php it looks like this:
Code: [Select]
require_once 'api/v2/Activity.php';
if ( is_a( civicrm_activity_create($activity, 'Email'), 'CRM_Core_Error' ) ) {
return false;
}

I added some trapping code to send me an email with a dump of that newly created activity object.  This is what I got:

Code: [Select]
array (
 'is_error' => 1,
 'error_message' => 'Missing Source Contact',
)

First thing is obviously that the new code doesn't return a CRM_Core_Error object on error anymore.  The second thing is the missing source contact error.  There is only one place that returns that message and that happens if the contact ID of the sender (obtained from the session) is not valid.  In my testing I found that when I sent a preview email in the second to last step of a CiviMail campaign the source id error does not occur.  That makes sense because I am logged in while doing it so the session contains my ID.  However, when the mailing is being sent by the cron job, it would seem the session is not being populated in the way this function requires, because the result in my testing was that the session object looks like this when it is being used to get the source contact ID:
Code: [Select]
CRM_Core_Session::__set_state(array(
  '_key' => 'CiviCRM',
  '_session' =>
 array (
   'CiviCRM' =>
   array (
     'domainID' => 1,
     'numberDomains' => '1',
   ),
 ),
))

I'm assuming that is the default load of the CRM_Core_Session object.  So it appears that at least in the Joomla version the session is not populated with necessary data when the CiviMail cron script is run. [Edit: This is what is happening in my installation.  Perhaps something to do with server permissions for saving sessions, etc.?]
« Last Edit: July 07, 2008, 04:54:42 pm by ClayWhipkey »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviCRM 2.0.4 doesn't record CiviMail mailings in Activities?

This forum was archived on 2017-11-26.