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 CiviMember (Moderator: Deepak Srivastava) »
  • Questions on using UpdateMembershipRecord
Pages: [1]

Author Topic: Questions on using UpdateMembershipRecord  (Read 1722 times)

Wonder95

  • Guest
Questions on using UpdateMembershipRecord
February 17, 2008, 08:29:27 pm
I'm trying to use UpdateMembershipRecord to send reminder e-mails when membership is about to expire, and I have a couple questions:

1) According to the instructions, I am supposed to edit line 63 by adding the senders e-mail address.  In my copy line 63 is
Code: [Select]
    public function updateMembershipStatus( $domainID )
Is that correct line?  Do I plug in the sender address for $domainID?  That doesn't seem right.

2) The documenation says

Code: [Select]
This script updates all membership status records for Domain 1 by default. Pass a different domain ID (integer value) as a parameter if you need to update statuses for other domains.
In the context of this file, what is a domain?  Is is a membership?  Or something different?

Thanks.


Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Questions on using UpdateMembershipRecord
February 17, 2008, 10:14:19 pm
The line that is to be changed is:

Quote
$from = "EMAIL@FIXME.ORG";

where "EMAIL@FIXME.ORG" is to be replaced with sender's email ID.

For information on domain ID, check http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+for+Drupal+-+Configure+Multi-site+Installations.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Wonder95

  • Guest
Re: Questions on using UpdateMembershipRecord
February 18, 2008, 07:44:40 am
OK I found the line.  The problem is, the line number given for it in the documentation (line 63) is not accurate.  It's not even close.  In my file (using CiviCRM 1.9), the email line was line 115, which is only line 63 if you consider line 53 as your first line, and that's well into the code.

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: Questions on using UpdateMembershipRecord
February 18, 2008, 09:19:10 am

Can you please fix the wiki so other users can find it a bit more easily :)

thanx

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

Wonder95

  • Guest
Re: Questions on using UpdateMembershipRecord
February 18, 2008, 09:51:51 am
The wiki page has been updated.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Questions on using UpdateMembershipRecord

This forum was archived on 2017-11-26.