summaryrefslogtreecommitdiffstats
path: root/lib/MessageSystems/SendGridCompatibility/SDK.php
blob: f1a4df3765e1e133250416dc4294e02eac8de873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
namespace MessageSystems\SendGridCompatibility;

use MessageSystems\Transmission;
use MessageSystems\SendGridCompatibility\Email;
use MessageSystems\Configuration;

class SDK{
	private $sparkPost;
	
	public function __construct($username, $password, $options = null) {
		//username isn't used in our system
		$opts = ['key'=>$password];
		if (!is_null($options)) {
			$opts = array_merge($opts, $options);
		}
		Configuration::setConfig($opts);
	}
	
	public function send(Email $email) {
		$email->send();
	}
}
?>