Created
August 30, 2013 05:28
-
-
Save sebmih/6386571 to your computer and use it in GitHub Desktop.
A script based on the GitHub library that enables the Subscription Tracking app.
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 | |
include 'sendgrid-php-master/SendGrid_loader.php'; | |
$sendgrid = new SendGrid('*******', '*******'); | |
$mail = new SendGrid\Mail(); | |
$mail-> | |
addTo('[email protected]')-> | |
setFrom('[email protected]')-> | |
setSubject('Kvitto din kförs betalning nördlichen blabla Hemisphäre ciment')-> | |
setText('Testing %name% subject.')-> | |
addUniqueArgument("uid:", "sebGmail")-> | |
//addSubstitution("%name%", array("John"))-> | |
setHtml('<p>Testing <i>%name%</i> subject.</p>')-> | |
addFilterSetting("subscriptiontrack", "enable", 1)-> | |
addFilterSetting("subscriptiontrack", "text/plain", "If you would like to unsubscribe and stop receiving these emails click here: <% %>.")-> | |
addFilterSetting("subscriptiontrack", "text/html", "If you would like to unsubscribe and stop receiving these emails <% click here %>"); | |
$sendgrid->smtp->send($mail); | |
echo 'Great Success!'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment