Skip to content

Instantly share code, notes, and snippets.

@blakeneal
blakeneal / processSignature.php
Created July 10, 2019 12:00
Shows how to make a generated image from a canvas object and attach it to an email
<?php
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Access-Control-Allow-Origin: *");
if ( isset($_POST["image"]) && !empty($_POST["image"]) ) {
$subject = 'Signature';
$boundaryId = md5(uniqid());