christianklisch/newsletter2go-api-php

A newsletter2go webservice wrapper

v3.3.1 2015-03-27 08:57 UTC

This package is auto-updated.

Last update: 2024-11-15 22:36:26 UTC


README

This is a php plugin to send whitelisted e-mails via newsletter2go server.

Features:

  • Send whitelisted e-mails and newsletters
  • E-Mail or SMS
  • Usermanagement on server
  • Groupmanagement on server
  • Newslettermanagement on server

More

Installation and usage

You can install this newsletter2go wrapper by using composer:

    "require": {
        "christianklisch/newsletter2go-api-php": "v3.3.1"
    }

Setup and sending simple e-mail:

		// init with api-key
    $api = new \Newsletter2Go\Newsletter2GoService('1234567890abcdef');
    $api->setDebug(0);
    $api->setDefaultopentracking(0);
    $api->setDefaultlinktracking(0);

    $email = new \Newsletter2Go\Email();
    $email->setTo('you@myaddress.com');
    $email->setFrom('me@myaddress.com');
    $email->setSubject('Hello-Subject');
    $email->setText('Hello my friend');
    $email->setReply('me@myaddress.com');
        
    $res = $api->sendSingleMail($email);

Contributors

Copyright and license

Copyright 2015 Christian Klisch, released under the MIT license.