I have a couple of systems and I'm trying to think of a way to tie them together a bit.

I have an online store that uses osCommerce.Users who open an account there get email confirmations and such from the osCommerce installation. It's confusing to many of them that they don't also get broadcast emails from phpList. No matter how many places and times I instruct them to also register for the mailing list, it will get missed.

What I wish is that there was a way that new accounts opened on the osCommerce app would automatically subscribe to phpList. I would still require them to confirm the phpList subscription, so they wouldn't be subscribed without consent.

I would still require them to confirm the phpList subscription, so they wouldn't be subscribed without consent.

Your approach isn't going to make phplist send the confirmation email. If you really want to do that then you will need to mimic submitting a subscribe page, using curl, so that phplist treats it as a real subscription.

I'm looking into the restapi and it might work for me, except for the fact you need to be logged in to run anything.

You might be misunderstanding how the restapi works. In your OS commerce code you would make calls to the API. The first API method that you need to call is to 'login' to phplist with an admin/password. After that you make calls to add a user, etc.

I'm looking into the restapi and it might work for me, except for the fact you need to be logged in to run anything.

You might be misunderstanding how the restapi works. In your OS commerce code you would make calls to the API. The first API method that you need to call is to 'login' to phplist with an admin/password. After that you make calls to add a user, etc.

It sounds promising if only I could login, to get started.Here's my rest_test.php file, all it has is the method to login and getLists, when I run this I get nothing . . .