Hi,
I've written a little PHP class that abstracts the webservice interface of OpenEMM and provides the same functionality as native PHP code. Additional, I've implemented a workaround for the missing "updateSubscriber" functionality.
It can be downloaded at http://enarion.net/programming/php/openemm/.
This is the first public release, there might be problems and errors. If you use it, it would be great if you could give some feedback.
Best regards,
Tobias
OpenEMM php class
Moderator: moderator
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Fix?
We probably do not need updateSubscriber because method addSubscriber offers a fifth boolean parameter called "overwrite" (see documentation). If set to "true" the subscriber will be updated if a corresponding entry exists in the database.
Does this solve your problem?
Does this solve your problem?
OpenEMM Maintainer
Question
Hi,
i use this php class for adding/removing subscribers.
But i don't understand how to send the opt-in mail:
Is this triggered automatically for all new users with status 5?
Or must the sending be triggered manually?
I think, it must be triggered manually by sendMailing() because mailingID is needed - right?
So there ist the next question: Why try OpenEMM to send a mail to the initial test-User "mail@yourdomain.com" (which is in status "active") and not to my new users?
Perhaps my questions not only according to PHP-Webservice-Class...
Regards
Jehu
i use this php class for adding/removing subscribers.
But i don't understand how to send the opt-in mail:
Is this triggered automatically for all new users with status 5?
Or must the sending be triggered manually?
Code: Select all
[...]
$this->openemm->setSubscriberBinding($subscriberId, $list, 5, 'W', 'WS, Opt-In-IP: ' . $_SERVER['REMOTE_ADDR']);
}
$sendMailing = $this->openemm->sendMailing(3, 'W', time()+60); // first param (3) ist the mailing "german double opt in"
if($sendMailing == 1)
{
return true;
}
[...]
So there ist the next question: Why try OpenEMM to send a mail to the initial test-User "mail@yourdomain.com" (which is in status "active") and not to my new users?
Perhaps my questions not only according to PHP-Webservice-Class...
Regards
Jehu