public function sendCampaign($CampaignId)
    {
        $response = $this->mailjet->post(Resources::$CampaigndraftSend,
            ['id' => $CampaignId]);
        if (!$response->success()) {
            $this->throwError("CampaignDraftManager:sendCampaign failed",
                $response);
        }

        return $response->getData();
    }
public function sendCampaign($CampaignId)
    {
        $response = $this->mailjet->post(Resources::$CampaigndraftSend,
            ['id' => $CampaignId]);
        if (!$response->success()) {
            $this->throwError("CampaignDraftManager:sendCampaign failed",
                $response);
        }

        return $response->getData();
    }
public function sendCampaign ( $ CampaignId ) { $ response = $ this -> mailjet -> post ( Resources :: $ CampaigndraftSend , [ 'id' => $ CampaignId ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "CampaignDraftManager:sendCampaign failed" , $ response ) ; } return $ response -> getData ( ) ; }
Send the campaign immediately
@param string Campaign $id
@return array
Send the campaign immediately