postmark-php icon indicating copy to clipboard operation
postmark-php copied to clipboard

Change API key on existing instance

Open ghost opened this issue 14 years ago • 0 comments

I think, it would be useful to have an option to change the API key on an existing instance. We are using your class within a batch job and need to change "Servers" back and forth, depending on the message we are currently processing. For now, we have just added these few lines:

/**
* Set or change the Postmark API key
*
* @param string $apiKey Postmark API key
* @return Mail_Postmark
*/
public function &setApiKey($apiKey)
{
  $this->_apiKey = $apiKey;
  return $this;
}

ghost avatar Jun 28 '11 15:06 ghost