[SOLVED] Auto Action to send URL to Mailman

10 years 2 months ago - 10 years 2 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)
$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?

Please Log in to join the conversation.

10 years 2 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 to join the conversation.

10 years 2 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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.205 seconds

Facebook Twitter LinkedIn