Send 'unsubscribe' instead of 'subscribe' to mailman lists when unsubcribing.
This commit is contained in:
1 parent
31df72aee1
commit
669b1325de
1 file changed
+2
-2
@@ -1483,8 +1483,8 @@ function unsubscribe_mailinglist($user_id, $group_id) {
|
||||
if ($group->mailinglist != "") {
|
||||
$user = new User($user_id);
|
||||
$sendto = $group->mailinglist . "-unsubscribe@studentersamfundet.no";
|
||||
$subject = "subscribe";
|
||||
$message = "subscribe";
|
||||
$subject = "unsubscribe";
|
||||
$message = "unsubscribe";
|
||||
$headers = "From: $user->email \r\n";
|
||||
if (!@ mail($sendto, $subject, $message, $headers)) {
|
||||
error("Ikke kontakt med server for avmelding fra epostliste.");
|
||||
|
||||
Reference in new issue
Block a user