This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// You need to install the sendgrid client library so run: composer require sendgrid/sendgrid | |
require '/vendor/autoload.php'; | |
// contains a variable called: $API_KEY that is the API Key. | |
// You need this API_KEY created on the Sendgrid website. | |
include_once('./credentials.php'); | |
$FROM_EMAIL = 'YOUR_EMAIL'; | |
// they dont like when it comes from @gmail, prefers business emails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Replace all SVG images with inline SVG | |
*/ | |
jQuery('img.svg').each(function(){ | |
var $img = jQuery(this); | |
var imgID = $img.attr('id'); | |
var imgClass = $img.attr('class'); | |
var imgURL = $img.attr('src'); | |
jQuery.get(imgURL, function(data) { |