Automatically add a user from my web store?

Once you've installed phpList Version 2... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

Automatically add a user from my web store?

Postby briandunning » 11:54pm, Thu 22 Feb, 2007

I'd like to have my custom PHP/MySQL web store automatically add a user to the list when they buy something. Is there an API to facilitate this? It looks quite complex.
briandunning
phpLister
 
Posts: 13
Joined: 10:13pm, Thu 22 Feb, 2007

Postby H2B2 » 5:37pm, Fri 23 Feb, 2007

Phplist class - http://forums.phplist.com/viewtopic.php?t=5009
A set of functions which provide a simple way to interact with phpList in your own programs (eg: adding a user who just purchased something from your website to a mailing list). It takes a list id, an email address, and optionally some attributes, and subscribes the user to that list. If the user already exists, the existing account will be subscribed. If it's a new user, they'll be added first. Users added in this way are pre-confirmed (they will not be sent a confirmation email).

Source: http://docs.phplist.com/PhplistHacks
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006


Return to Question & Problems - after installing

Who is online

Users browsing this forum: Bing [Bot] and 4 guests