Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-6953

Change bin/UpdateMembershipRecord.php to use FROM email address defined in civicrm.settings.php

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.2.3
    • Fix Version/s: 3.4.0
    • Component/s: CiviMember
    • Labels:
      None

      Description

      Update the code in bin/UpdateMembershipRecord.php to use a FROM email address defined in civicrm.settings.php.

      This improvement would reduce the number of steps required during an upgrade, and would help make civicrm more friendly to Drupal multi-site installations (where more than one Drupal install is using the CiviCRM codebase and would need different FROM addresses).

      1. Changes required in bin/UpdateMembershipRecord.php:
      a. Remove line 218 ($from =...)
      b. Change line 219 so $from becomes CIVICRM_FROM_ADDRESS

      2. Add the following to civicrm.settings.php:
      // set FROM email address for membership reminder emails
      define(CIVICRM_FROM_ADDRESS,'EMAIL@FIXME.ORG');

      3. Change CiviCRM Upgrade instructions to remove need to update FROM address

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              ptc_austin Austin Mroczek
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified