diff options
Diffstat (limited to 'lib/MessageSystems/SendGridCompatibility/SDK.php')
-rw-r--r-- | lib/MessageSystems/SendGridCompatibility/SDK.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/MessageSystems/SendGridCompatibility/SDK.php b/lib/MessageSystems/SendGridCompatibility/SDK.php new file mode 100644 index 0000000..f1a4df3 --- /dev/null +++ b/lib/MessageSystems/SendGridCompatibility/SDK.php @@ -0,0 +1,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(); + } +} +?>
\ No newline at end of file |