Browse Source

Update mailing-send script and mailling card

lmarcouiller 4 years ago
parent
commit
06c1817930
2 changed files with 4 additions and 6 deletions
  1. 2 3
      htdocs/comm/mailing/card.php
  2. 2 3
      scripts/emailings/mailing-send.php

+ 2 - 3
htdocs/comm/mailing/card.php

@@ -285,9 +285,8 @@ if (empty($reshook)) {
 
 						$moreinheader = '';
 						if (preg_match('/__UNSUBSCRIBE__/', $message)) {
-							$moreinheader = make_substitutions('__UNSUBSCRIBE__', $substitutionarray);
-							$moreinheader = explode('"', $moreinheader);
-							$moreinheader = "List-Unsubscribe: <".$moreinheader[1].">\n";
+							$moreinheader = "List-Unsubscribe: <__UNSUBSCRIBE_URL__>\n";
+							$moreinheader = make_substitutions($moreinheader, $substitutionarray);
 						}
 
 						$arr_file = array();

+ 2 - 3
scripts/emailings/mailing-send.php

@@ -271,9 +271,8 @@ if ($resql) {
 
 						$moreinheader = '';
 						if (preg_match('/__UNSUBSCRIBE__/', $message)) {
-							$moreinheader = make_substitutions('__UNSUBSCRIBE__', $substitutionarray);
-							$moreinheader = explode('"', $moreinheader);
-							$moreinheader = "List-Unsubscribe: <".$moreinheader[1].">\n";
+							$moreinheader = "List-Unsubscribe: <__UNSUBSCRIBE_URL__>\n";
+							$moreinheader = make_substitutions($moreinheader, $substitutionarray);
 						}
 
 						$arr_file = array();