Created
August 27, 2014 15:47
-
-
Save demoore/3dfe4e859d502773d79d to your computer and use it in GitHub Desktop.
test
This file contains hidden or 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 | |
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' => '[email protected]'), | |
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' => '[email protected]', | |
'reply_to' => '[email protected]' | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment