jbroadway / pubmail

Mailing list software for the messagepub.com service

This URL has Read+Write access

pubmail / unsubscribe.php
100644 14 lines (9 sloc) 0.304 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
 
$settings = parse_ini_file ('settings.php');
 
require_once ('lib/functions.php');
 
$pm = new PubMail ($settings);
 
if (! empty ($_GET['email']) && $_GET['key'] == $settings['unsubscribe_key']) {
$pm->move_subscriber ($_GET['email'], 'unsubscribed');
require_once ('html/unsubscribed.php');
}
 
?>