summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Song <vincent.wsong@gmail.com>2016-06-10 15:36:11 -0400
committerVincent Song <vincent.wsong@gmail.com>2016-06-10 15:36:11 -0400
commit5dd18d3d8141c038ec454b7ae40d53f0d5b94123 (patch)
treebb279d094927bf6c4f876aa086c4635567809f4e
parentd0b5a64633025f04cdc41a84af0162559d965fbe (diff)
downloadphp-sparkpost-5dd18d3d8141c038ec454b7ae40d53f0d5b94123.zip
php-sparkpost-5dd18d3d8141c038ec454b7ae40d53f0d5b94123.tar.gz
php-sparkpost-5dd18d3d8141c038ec454b7ae40d53f0d5b94123.tar.bz2
WIP
-rw-r--r--.gitignore1
-rw-r--r--lib/SparkPost/Transmission.php45
2 files changed, 1 insertions, 45 deletions
diff --git a/.gitignore b/.gitignore
index 0a84bbb..e683c24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ test/output/
examples/example-config.json
.idea
/composer.phar
+test.php \ No newline at end of file
diff --git a/lib/SparkPost/Transmission.php b/lib/SparkPost/Transmission.php
index d3cf0cb..ddcde2f 100644
--- a/lib/SparkPost/Transmission.php
+++ b/lib/SparkPost/Transmission.php
@@ -102,49 +102,4 @@ class Transmission extends Resource
}
}
-$testPayload =
-[
- 'content' => [
- 'from' => [
- 'name' => 'Sparkpost Team',
- 'email' => 'from@sparkpostbox.com',
- ],
- 'subject' => 'First Mailing From PHP',
- 'html' => '<html><body><h1>Congratulations, {{name}}!</h1><p>You just sent your very first mailing!</p></body></html>',
- 'text' => 'Congratulations, {{name}}!! You just sent your very first mailing!',
- ],
- 'substitution_data' => ['name' => 'YOUR_FIRST_NAME'],
- 'recipients' => [
- [
- 'address' => 'EMAIL_ADDRESS1',
- 'name' => 'NAME_1'
- ],
- ],
- 'bcc' => [
- [
- 'address' => 'BCC_EMAIL_ADDRESS1',
- 'name' => 'BCC_NAME1'
- ],
- [
- 'address' => 'BCC_EMAIL_ADDRESS2',
- 'name' => 'BCC_NAME2'
- ],
- ],
- 'cc' => [
- [
- 'address' => 'CC_EMAIL_ADDRESS1',
- 'name' => 'CC_NAME1'
- ],
- [
- 'address' => 'CC_EMAIL_ADDRESS2',
- 'name' => 'CC_NAME2'
- ],
- [
- 'address' => 'CC_EMAIL_ADDRESS3',
- ]
- ]
-];
-$transmission = new Transmission();
-$transmission->post($testPayload);
-
?> \ No newline at end of file