Skip to content
This repository has been archived by the owner on Dec 22, 2019. It is now read-only.

Commit

Permalink
Added functionality to include a campaign ID in a message
Browse files Browse the repository at this point in the history
Fixes: #19
  • Loading branch information
Bogardo committed Jun 11, 2014
1 parent ace2966 commit 0102357
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Bogardo/Mailgun/Mailgun/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,18 @@ public function tag($tags)
return $this;
}

/**
* Add a Mailgun campaign ID(s) to the message
*
* @param mixed $value an array of id's (maximum of 3) or a single id
* @return \Bogardo\Mailgun\Mailgun\Message
*/
public function campaign($value)
{
$this->{'o:campaign'} = $value;
return $this;
}

/**
* Add custom data to a message
*
Expand Down

0 comments on commit 0102357

Please sign in to comment.