public static function Init() { DebugManager::Log("Initializing Sendgrid Email Connector", '@'); $appConfig = SatanBarbaraApp::GetConfig(); self::SetCreds($appConfig['sendgrid']); DebugManager::Log("Creating new SendGrid Interface!"); $interface = new SendGrid(self::$_credentials['username'], self::$_credentials['password']); self::SetInterface($interface); if (SATANBARBARA_CURRENT_ENVIRONMENT == 'dev') { self::$dry_run = true; } return true; }