/** * Add Mailgun campaign ID(s) to the message * Campaign ID limit is 3. * * @param int|string|array $campaigns * * @return \Bogardo\Mailgun\Mail\Message */ public function campaign($campaigns) { $campaigns = array_slice((array) $campaigns, 0, 3); foreach ($campaigns as $campaign) { $this->messageBuilder->addCampaignId($campaign); } return $this; }