Skip to content

Instantly share code, notes, and snippets.

<?php
/*
A payload like the following is POSTed to your webhook
{
"id": "AD38DBD002",
"domain": "yourdomain.ch",
"from": "you@yourdomain.ch",
"to": "some.name@example.com",
"status": "sent",
@msebel
msebel / cmailapp-example.php
Last active February 24, 2026 10:52
Sending mail with comotive Mail
<?php
/**
* Very simple PHP class to utilize comotive mail
* @package LBWP\Helper\Mail
*/
class CMailApp
{
/**
* @var string the host uri
@msebel
msebel / session-handler.php
Created January 29, 2016 09:40
session-handler.php - php5-memcached based session handling with $wp_object_cache
<?php
/**
* Custom session handler to save all session from an instance
* to memcached instead of the file system
*/
class SessionSaveHandler
{
/**
* Number of seconds, a session shall live without changes
@msebel
msebel / object-cache_loadbalance.php
Last active February 15, 2016 07:30
object-cache.php for php5-memcached
<?php
/*
Name: Memcached Object Cache
Description: Modern Memcached backend for the WP Object Cache.
Version: 3.1
URI: http://www.comotive.ch
Author: Michael Sebel
*/
function wp_cache_add($key, $data, $flag = '', $expire = 0)