I've a mailing list in my cPanel. When a user registers, I want to add him to my mailing list automatically. How can I do it?
A:
It all depends on what mailing list you're using. I'm not too familiar with what cPanel uses for lists.
In the past, I have used cUrl to add databases and users via requests to specifically constructed urls within the appropriate parts of cPanel.
navitronic
2009-02-26 04:48:37
A:
As far as I know, cPanel uses Mailman for mailing lists. This means you can probably do something like this to add an email to a mailing list:
shell_exec("echo [email protected] | /var/lib/mailman/bin/add_members -r - LISTNAME");
where LISTNAME is the name of the mailing list. Depending on your system, the path to the Mailman scripts may be somewhere other than /var/lib/mailman/bin/.
miknight
2009-06-22 13:10:08