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) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • civicrm_mailing with thunderbird
Pages: [1]

Author Topic: civicrm_mailing with thunderbird  (Read 5831 times)

TrAshiBa

  • Guest
civicrm_mailing with thunderbird
April 30, 2007, 07:55:11 am
Hello everybody,

I made a thunderbird extension and It is interesting to share what I have developed.

This extension uses 2 civiCRM API "crm_get_groups" and "crm_get_group_contacts".

First, it will search all the groups and smart groups existing in the Data Base.
And then for each selected groups/smart groups, it displays members' email address in CC or BCC.
There are custom "toolbarbutton" and "menuitem"

You have to configure the URL to the php file which makes a request. ( Mailing > Change URL ) and add the code below in the end of the SoapServer.php file ( ../civicrm/CRM/Utils/ )

Edit: You can modify the "civicrm_mailing.js" file in the "preferences" directory too.

Code: [Select]
//public function search_group_contacts_tb($key, $param){
public function search_group_contacts_tb($param){
//$this->verify($key);

$params = array( 'title' => $param );

//$return_properties = array('id', 'title' );
$return_properties = array('title' );
$myGroups =& crm_get_groups($params, $return_properties);

foreach($myGroups as $group) {
$return_properties = array( 'email' );
$sort = array("email" => "ASC");

        $myContacts =& crm_get_group_contacts(&$group, $return_properties ,'Added',$sort, $offset = 0, $row_count = 25 );

foreach ($myContacts as $contact) {
            $display .= $contact->email . ", ";
        }
}
return $display;
}

The package are available here : ZIP format or XPI format

Note that the authentication is disabled and a "bug" is known.

Email addresses are duplicate or 3 times, it is not for all the email addresses but it is very strange.
I don't think it was in my JS code.

I joined a screen shot too :)

Any feedback and suggestions are welcome.
« Last Edit: May 01, 2007, 02:12:04 am by TrAshiBa »

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: civicrm_mailing with thunderbird
April 30, 2007, 08:27:02 am
Yay, that's pretty cool. :-)

I'm going to install the extension and check it out sometimes in next two weeks, will come back with remarks.

Thanks for making your work available to others!

Thx,
michau
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

TrAshiBa

  • Guest
Re: civicrm_mailing with thunderbird
April 30, 2007, 01:06:03 pm
Quote from: Michał Mach on April 30, 2007, 08:27:02 am
Yay, that's pretty cool. :-)
 
I'm going to install the extension and check it out sometimes in next two weeks, will come back with remarks.

Thanks for making your work available to others!

Thx,
michau

I am looking forward for your remarks :)


PS:

I got a problem when I want to edit my first post.
It returns the error message:

Code: [Select]
Database Error: Lost connection to MySQL server during query
File: /home/civicrm.org/forum/Sources/Post.php
Line: 1423

I just want to correct my bad english  :-[ ( I saw 3 faults :( ) and add that the server's URL can be changed in the "civicrm_mailing.js" file in the "preferences" directory.

best regards
« Last Edit: April 30, 2007, 04:02:35 pm by Michał Mach »

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: civicrm_mailing with thunderbird
April 30, 2007, 01:56:55 pm
Uh oh... Not good, this error doesn't look nice. I checked SMF support forums and there is a few potential reasons for this behaviour, need to check all of them.

Can you please see if it happens again and let me know if it persists?
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

TrAshiBa

  • Guest
Re: civicrm_mailing with thunderbird
April 30, 2007, 02:06:57 pm
Quote from: Michał Mach on April 30, 2007, 01:56:55 pm
Can you please see if it happens again and let me know if it persists?

Do you change some thing ?

The same error message is displayed.  And the 'preview' before 'post' works fine ! ;-)

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: civicrm_mailing with thunderbird
April 30, 2007, 04:07:14 pm
There is some wierd SMF error showing up when editing a message with attachment. Note, that you should be able to edit any other message without problem.

I tried all the suggestions that I've found on SMF support forum, without success, so I've posted a support request there - lets see what they say.

michau
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: civicrm_mailing with thunderbird
April 30, 2007, 04:17:53 pm
Aha! While waiting for SMF forum registration email, I investigated a little bit more and it worked this time! :-) 8)

Some SQL queries in SMF didn't have proper quotes in them - some say it's a mysql bug, some say it's mysql feature, I say - it was breaking post editing. :-)

It should be fixed now.

michau
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

TrAshiBa

  • Guest
Re: civicrm_mailing with thunderbird
May 01, 2007, 02:13:30 am
Quote from: Michał Mach on April 30, 2007, 04:17:53 pm
Aha! While waiting for SMF forum registration email, I investigated a little bit more and it worked this time! :-) 8)

Some SQL queries in SMF didn't have proper quotes in them - some say it's a mysql bug, some say it's mysql feature, I say - it was breaking post editing. :-)

It should be fixed now.

michau

Nice michau :)

It works fine :)  ==> post edited :p

micheas

  • I’m new here
  • *
  • Posts: 14
  • Karma: 1
    • Green Campaigns
Re: civicrm_mailing with thunderbird
July 20, 2008, 02:09:47 am
Has any thing happened with this extension?

It could be a very nice selling point for civicrm.

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_mailing with thunderbird
July 20, 2008, 03:35:17 pm

I dont think so, but would be great if someone steps up and ensures it works with CiviCRM 2.x and potentially uses our new "Email2Activity" script (http://civicrm.org/node/406) to attach the email in CiviCRM :)

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

dflasse

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 0
    • Tout peut arriver
Re: civicrm_mailing with thunderbird
July 22, 2008, 12:45:50 am
It doesn't work with version 2.0. The CiviCRM APIs have changed and we don't have the resources (no developer) to fix it. We found a workaround using a mailing list server (sympa.org). Emails meant to be distributed are sent to the sympa server who looks into the civicrm db to who the mail needs to be sent (each distribution list match a query). This allows us to use any mail client and we don't need the plugin anymore. Furthermore, it's easier to perform a change in the queries (in case of a DB structure change) than to modify the plugin's code.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • civicrm_mailing with thunderbird

This forum was archived on 2017-11-26.