Changeset 722
- Timestamp:
- 08/15/2007 11:59:13 AM (3 years ago)
- Files:
-
- 1 modified
-
trunk/actions/feedback/feedback.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/actions/feedback/feedback.php
r713 r722 128 128 //default recipient is admin 129 129 default: 130 $admins = preg_split('/\s*,\s*/',trim($this->GetConfigValue('admin_users'))); 131 $recipient_name = $admins[0]; 132 $recipient_email = $this->GetConfigValue('admin_email'); 130 $adminarray = preg_split('/\s*,\s*/',trim($this->GetConfigValue('admin_users')), -1, PREG_SPLIT_NO_EMPTY); 131 $recipient_name = $adminarray[0]; 132 $admin = $this->loadUserData($this->tag); 133 $recipient_email = $admin['admin_email']; // get email from DB rather than config! 133 134 $b_admin = TRUE; 134 135 break; … … 205 206 $msg .= FEEDBACK_EMAIL_LABEL."\t".$sender_email.$eol; 206 207 $msg .= $eol.$comments.$eol; 207 $add_headers .= 'To: '.$recipient.$eol; // adding full address208 #$add_headers .= 'To: '.$recipient.$eol; // adding full address - may lead to duplicate mails: suppressing for now 208 209 $add_headers .= 'From: '.$sender.$eol; // adding full address 209 210 $add_headers .= 'Reply-To: '.$sender.$eol; // adding full address