O'Reilly logo

PHP 5 e-commerce Development by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating Campaign Monitor

Campaign Monitor is a really useful e-mail newsletter application. It makes sending e-mail newsletter campaigns really simple, and tracks various statistics including:

  • Who opened the e-mails
  • Who clicked on links in the e-mails
  • Which e-mail programs were used to open the e-mails
  • Reports over time

Because the service is hosted, the subscribers are stored in the Campaign Monitor database. Thankfully, it is quite simple to integrate. All we need to do is open up a URL with our API key and list ID (both available from the Campaign Monitor control panel), and the subscriber's name and e-mail address — both of these pieces of information we take when the customer signs up.

$newsletter_ping = fopen("http://api.createsend.com/api/api.asmx/Subscriber.Add? ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required