Skip to content

Instantly share code, notes, and snippets.

@demoore
Created August 27, 2014 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demoore/3dfe4e859d502773d79d to your computer and use it in GitHub Desktop.
Save demoore/3dfe4e859d502773d79d to your computer and use it in GitHub Desktop.
test
<?php
require 'sendwithus_php/API.php';
$API_KEY = 'THIS_IS_A_TEST_API_KEY'; // <-- API key from the "API Settings" in the
$options = array( // sendwithus dashboard goes here
'DEBUG' => true // For testing purposes, this can be disabled later.
);
$api = new API($API_KEY, $options);
$response = $api->send('email_id', // Looks something like "tem_ajkSKJWj294"
array(
'name' => 'Sunil',
'address' => 'sunill.panthanghi@gmail.com'),
array(
'email_data' => array('name' => 'Sunhil', //All the data being passed goes here
'password' => 'somePassword'),
'sender' => array(
'name' => 'Company', // This array is send info
'address' => 'company@company.com',
'reply_to' => 'info@company.com'
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment