Using prestashop and / phplist at the moment everytime i send a new message I need to import manually my new suscriber from prestashop.
Bau I’m running 7 website, with 7 prestashop and 7 phplist, It’s quite boring to need to do it everytime manually.
So i’m questionning my self about automatic import.
If I don’t have problem to export form prestashop I have no idea how to do it in phplist , expect if i developp my on mysql request.
Is there a any to simple import listr of email by a cron?
phplist doesn’t support importing subscribers from the command line (similar to process queue and process bounces) but you can use a program such as curl or wget to GET or POST phplist pages, as if it was being done by browser. That command can then be run by a cron job.
This topic in the old forums explains how it can be done, and still seems to work with the latest phplist.
For example, to import a file of email addresses (email.csv) into a list (list id 2) using the import subscribers page copy/paste option, this command can be used
but as soon I tried with a file nothing happen
I tried
curl -v -F login=admin -F password=‘XXX’ -F “importcontent=@/home/XXX/e.csv” -F “listname[0]=‘cus’” -F “importlists[0]=6” -F “checkvalidity=1” ‘http://www.XXX.com/lists/admin/?page=importsimple&list=6’ -o curlout.html
Curl find the file, and the file content only on email adress?
So do you have any idea?