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
rather than introducing yet another setting, we should use the "default" from email address we use when sending an email with civicrm and civimail:
http://drupal.demo.civicrm.org/civicrm/admin/options/from_email&group=from_email_address&reset=1
if you can create a patch and use the above, we can get this into 3.3