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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Mailing labels not including addressee
Pages: [1]

Author Topic: Mailing labels not including addressee  (Read 949 times)

gholt

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 0
Mailing labels not including addressee
June 28, 2011, 11:20:08 am
Note that I found a similar, but old, discussion similar to this, but it didn't seem like it was resolved, and I couldn't find a solution that I could understand.
http://forum.civicrm.org/index.php/topic,12302.msg52890.html#msg52890


I'm using 3.4.2 in Drupal 6.

Using the standard addressee options, and the default mailing label address settings, most of my labels are missing the addressee. I imported most of the contacts. The only labels that seem to include an addressee are the people I've entered using the New Contact form, or people that already have a Drupal user account.

I've noticed that if I edit a contact that was imported, and go into Communication Preferences, the Addressee drop-down says "select". But when I create a new contact, the default is already selected.

What would be the easiest/best way to fix this so that all of the imported contacts have the default greetings?

Do I need to import another column for "Postal Greeting" with the following as the field content?
{contact.individual_prefix}{ } {contact.first_name}{ }{contact.middle_name}{ }{contact.last_name}{ }{contact.individual_suffix}

I tried the URL specified in the above discussion, but got a fatal error. I'm new to working with Drupal and CiviCRM, so I'm looking for a solution that is simple enough that even I can handle.

Thanks in advance for any advice you can give.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Mailing labels not including addressee
June 28, 2011, 11:50:33 am
You tried:

http://<drupal_root>/sites/all/modules/civicrm/bin/UpdateGreeting.php?name=<username>&pass=<pw>&key=<sitekey>

and it failed? What message do you see on that page?

This URL should work in 3.4.4.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Mailing labels not including addressee
June 28, 2011, 12:09:55 pm
Import contacts does not set the Addressee values, so you do want to run the UpdateGreeting.php command line script to set the 'Addressee' values for your contacts to the default. Use Hershel's URL below, but you need to include two additional required parameters for the script, so it looks like this:

http://<drupal_root>/sites/all/modules/civicrm/bin/UpdateGreeting.php?name=<username>&pass=<pw>&key=<sitekey>&gt=addressee&ct=Individual

You should also review the wiki pages on running these command line scripts since you'll need to set "sitekey" for you site first:
http://wiki.civicrm.org/confluence/display/CRMDOC40/Command-line+Script+Configuration
http://wiki.civicrm.org/confluence/display/CRMDOC40/Update+Greetings+and+Address+Data+for+Contacts
Protect your investment in CiviCRM by  becoming a Member!

gholt

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 0
Re: Mailing labels not including addressee
June 28, 2011, 12:27:10 pm
Thank you Dave and Hershel.
I tried Hershel's url and got an error that I need to specify the contact type, so I added both of the components you suggested. I figured that out from the previous discussion.

So when I ran it using the full URL Dave provided, the browser timed out and said it couldn't load the page. It wouldn't load even the home page for a couple of minutes, but then I was able to get in. So I wasn't able to see if there was an error.

I checked a random contact to see if the communication preference had been set. It hadn't. I double checked by "printing" labels, and they are still the same.

BTW, in case it matters, I'm running 3.4.3 on my test site.

gholt

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 0
Re: Mailing labels not including addressee
June 28, 2011, 01:49:11 pm
I found a work around by using different tokens.
http://forum.civicrm.org/index.php/topic,535.0.html#msg83535

I don't feel like I know what I'm doing enough to add something to the documentation. But for us beginners, this would be great to have explained in the docs, and in the little help pop-up by the fields on the Address Settings page.

Thank you both, again, for your help.

gsd

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
  • CiviCRM version: 3.45
  • CMS version: Joomla
  • MySQL version: 5.19
  • PHP version: 5.29
Re: Mailing labels not including addressee
October 08, 2011, 05:07:35 am
How do you do this in Joomla?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Mailing labels not including addressee

This forum was archived on 2017-11-26.