https://github.com/simison/php-mailman
PHP Class to use some functionality of GNU Mailman
https://github.com/simison/php-mailman
Last synced: about 2 months ago
JSON representation
PHP Class to use some functionality of GNU Mailman
- Host: GitHub
- URL: https://github.com/simison/php-mailman
- Owner: simison
- Created: 2010-04-11T05:18:08.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T21:23:42.000Z (over 4 years ago)
- Last Synced: 2025-03-29T18:11:27.597Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
php_mailman
===========This is just a basic skeleton to send some most used commands to Mailman.
You shouldn't echo functions out, because cURL returns an admin view.
Though you can use something like [Simple HTML DOM](http://simplehtmldom.sourceforge.net/)
to get some feedback from this class. Use at your own risk, though.## You can
* Subscribe
* Unsubscribe
* Set digest
* List a member
* List lists
## Howto
Construct:
`require_once('php_mailman.php');`
`$mailman = new php_mailman('domain.com', 'password', 'listname_domain.com');`
Subscribe:
`$mailman->subscribe('[email protected]');`
Unsubscribe:
`$mailman->unsubscribe('[email protected]');`
Set digest:
`$mailman->digest('[email protected]');`
List member:
`$mailman->list_member('[email protected]');`
List lists:
`$mailman->list_lists();`
Re-set settings:
`$mailman->set_domain('domain.com');`
`$mailman->set_adminpasswd('password');`
`$mailman->set_listname('listname_domain.com');`
`$mailman->set_protocol('https');`
`$mailman->set_listlanguage('fi'); // shortcode (en, de, etc...)`
`$mailman->set_notifyowner('1'); // 1 = yes | 0 = no`
`$mailman->set_notifyuser('1'); // 1 = yes | 0 = no`
`$mailman->set_digest('1'); // 1 = yes | 0 = no`
Or you can set all these on start:
`$mailman = new php_mailman($domain, $adminpasswd, $listname, $protocol, $listlanguage, $notifyowner, $notifyuser, $digest);`
## Read more
Mailman Wiki: [Additional web administration tools?](http://wiki.list.org/pages/viewpage.action?pageId=4030567)