2755
Comment: minor cleanup - removed 'html' from 'code' tag because it mungs <>
|
2734
Migrated to Confluence 4.0
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#pragma page-filename DOC/versions/14352532 | #pragma page-filename DOC/versions/4030567 |
Line 3: | Line 3: |
Line 8: | Line 9: |
Line 13: | Line 15: |
Line 34: | Line 37: |
{{{#!wiki caution | |
Line 35: | Line 39: |
{{{#!wiki caution In recent Mailman versions, <email-address> in the last example above must be encoded with '%2540' instead of '@'. Also, if <email-address>_realname is not specified, the user's real name will be cleared and any of the <email-address>_[mod, hide, nomail, ack, notmetoo, nodupes, digest, plain] flags which are not explicitly set will be cleared. |
In recent Mailman versions, <email-address> in the last example above must be encoded with '%2540' instead of '@'. Also, if <email-address>_realname is not specified, the user's real name will be cleared and any of the <email-address>_[mod, hide, nomail, ack, notmetoo, nodupes, digest, plain] flags which are not explicitly set will be cleared. |
Line 40: | Line 43: |
* __[+Through the Web__|http://starship.python.net/crew/jwt/mailman/#throughtheweb]+ (Python) | * [[http://starship.python.net/crew/jwt/mailman/#throughtheweb|Through the Web]] (Python) |
Line 42: | Line 46: |
* [[http://extensions.joomla.org/extensions/content-sharing/mailing-a-newsletter-bridges/5460|Jmailman]] (Joomla!) | * [[http://extensions.joomla.org/extensions/content-sharing/mailing-a-newsletter-bridges/5460|Jmailman]] (Joomla!) |
3.53. Additional web administration tools
Much of Mailman can be administered through the command-line tools (see <4.09 Summary of the mailman bin commands>), however the web interface also provides access to some information and functions of the tools.
By writing a script to call the web interface, actions can be submitted and information can be parsed.
Using PHP
Mailman can also be administered using PHP or any other scripting languages by using the appropriate URL and passing it to an fopen wrapper function (such as file_get_contents) or using a third party library such as CURL.
For example:
<?php $listsurl="http://example.com/mailman/admin"; $content=file_get_contents($listsurl); ?>
In this example, the list of lists should be returned as HTML and put into $content as a string. You can then parse the list to display or use how you desire.
Other available functions via the web interface:
List lists: http://example.com/mailman/admin List a member: http://example.com/mailman/admin/<listname>/members?findmember=<email-address>&setmemberopts_btn&adminpw=<adminpassword> Unsubscribe: http://example.com/mailman/admin/<listname>/members/remove?send_unsub_ack_to_this_batch=0&send_unsub_notifications_to_list_owner=0&unsubscribees_upload=<email-address>&adminpw=<adminpassword> Subscribe: http://example.com/mailman/admin/<listname>/members/add?subscribe_or_invite=0&send_welcome_msg_to_this_batch=0¬ification_to_list_owner=0&subscribees_upload=<email-address>&adminpw=<adminpassword> Set digest (you have to first subscribe them using URL above, then set digest): http://example.com/mailman/admin/<listname>/members?user=<email-address>&setmemberopts_btn=1&<email-address>_digest=1&<email-address>_nodupes=1&adminpw=<adminpassword>
In recent Mailman versions, <email-address> in the last example above must be encoded with '%2540' instead of '@'. Also, if <email-address>_realname is not specified, the user's real name will be cleared and any of the <email-address>_[mod, hide, nomail, ack, notmetoo, nodupes, digest, plain] flags which are not explicitly set will be cleared.
Also see
Through the Web (Python)
listadmin (Perl)
Jmailman (Joomla!)
Integrate a newsletter into your website (PHP, Wordpress)