Skip to Content Skip to Menu

[SOLVED] Auto Action to send URL to Mailman

  • dhuelsmann
  • dhuelsmann
  • OFFLINE
  • Posts: 6
  • Thanks: 1
  • Karma: 0
  • Add-ons
10 years 9 months ago - 10 years 9 months ago #240126 by dhuelsmann
I am looking for an easy way to update Mailman when the email address changes. Turns out there are a couple of URLs that when sent to mailman will unsubscribe or subscribe a member. I have tested these URLs and they work perfectly. Unfortunately, I can't seem to get them to work in Auto Actions Code.

For instance, to unsubscribe a member from Mailman, you would send the below URL.
Obviously you would fill in the angle brackets with the correct values.

Type: code
Trigger: OnAfterUserUpdate
Conditional: [var1_email] NOTEQUAL [var3_email]
Method: PHP (create_function)
Code:
$handle = fopen(http://example.com/mailman/admin/<listname>/members/remove?send_unsub_ack_to_this_batch=0&send_unsub_notifications_to_list_owner=0&unsubscribees_upload=[var3_email]&adminpw=<adminpassword>

Doesn't work. What am I doing wrong?
Last edit: 10 years 9 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #240133 by krileon
Replied by krileon on topic Auto Action to send URL to Mailman
Use the Request action and supply your URL as needed. There's no need to do custom PHP or anything of the sort to send an HTTP request.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: dhuelsmann

Please Log in or Create an account to join the conversation.

  • dhuelsmann
  • dhuelsmann
  • OFFLINE
  • Posts: 6
  • Thanks: 1
  • Karma: 0
  • Add-ons
10 years 9 months ago #240138 by dhuelsmann
Replied by dhuelsmann on topic Auto Action to send URL to Mailman
Perfect! Thanks for the quick help. I now unsubscribe and then immediately resubscribe to Mailman using two Auto Action requests. Works perfectly. Great substitute for the cb plugin subscribemailman that doesn't work if you don't have CBSubs.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum