@@ -26,14 +26,14 @@ SparkPost::setConfig(["key"=>"YOUR API KEY"]);
2626
2727try {
2828 // Build your email and send it!
29- Transmission::send([ 'campaign'=>'first-mailing',
29+ Transmission::send(array( 'campaign'=>'first-mailing',
3030 'from'=>'you@your-company.com',
3131 'subject'=>'First SDK Mailing',
3232 'html'=>'<html><body><h1>Congratulations, {{name}}!</h1><p>You just sent your very first mailing!</p></body></html>',
3333 'text'=>'Congratulations, {{name}}!! You just sent your very first mailing!',
34- 'substitutionData'=>[ 'name'=>'YOUR FIRST NAME'] ,
35- 'recipients'=>[[ 'address'=>[ 'name'=>'YOUR FULL NAME', 'email'=>'YOUR EMAIL ADDRESS' ]]]
36- ] );
34+ 'substitutionData'=>array( 'name'=>'YOUR FIRST NAME') ,
35+ 'recipients'=>array(array( 'address'=>array( 'name'=>'YOUR FULL NAME', 'email'=>'YOUR EMAIL ADDRESS' )))
36+ ) );
3737
3838 echo 'Woohoo! You just sent your first mailing!';
3939} catch (Exception $err) {
@@ -87,12 +87,11 @@ try {
8787## Development
8888
8989### Setup
90- We use [ Robo] ( http://robo.li/ ) for our task runner.
9190
92- Run ` composer install ` inside the directory to install dependecies and development tools including Robo .
91+ Run ` composer install ` inside the directory to install dependecies and development tools.
9392
9493### Testing
95- Once all the dependencies are installed, you can execute the unit tests using ` vendor\ bin\robo test `
94+ Once all the dependencies are installed, you can execute the unit tests using ` vendor/ bin/phpunit --bootstrap test/unit/bootstrap.php ./test/unit `
9695
9796### Contributing
9897Guidelines for adding issues
0 commit comments