Source for file mailman-newsletter.php
Documentation is available at mailman-newsletter.php
$_mmurl= 'http://example.co.uk/mailman/admin';
$_mmlist= 'newsletter_example.co.uk';
$_mmpw= 'password-cannot-have-spaces';
$_mmsub= 'Yey! Thanks for joining our newsletter.';
$_mmunsub= 'Sorry to see you go :(';
$_mmerror= 'There was some kind of error, check and try again.';
$_email= filter_var($_POST['email'], FILTER_VALIDATE_EMAIL );
require 'Services/Mailman.php';
if ($_POST['sub'] == 1 ) {
elseif ($_POST['sub'] == 0 ) {
$mm->unsubscribe ($_email);
<?php if ($notice) {?><div class="notice"><?= $notice?></div> <?php } ?>
<form method="post" id="newsletter_form" action="">
<label for="input_email">Email address:</label>
<input type="text" name="email" id="input_email">
<input type="radio" id="input_sub" name="sub" value="1" checked>
<label for="input_sub">Subscribe</label>
<input type="radio" id="input_unsub" name="sub" value="0">
<label for="input_unsub">Unsubscribe</label>
<input type="submit" value="Submit »" id="submit">
Documentation generated on Mon, 11 Mar 2019 15:47:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|