我添加域的 api 调用失败,假设我的 apikey 是正确的,为什么它会告诉我传递给 API 的参数无效?我遵循了http://documentation.mailgun.com/api-domains.html#example上的示例代码——添加域。我是否必须已经设置了一个 smtp 密码,或者我是否要在通话中添加一个新密码?
我的代码:
$mgClient = new Mailgun($this->getMailgunAPIKey());
$domain = $this->getMailgunDomain();
# Issue the call to the client.
$result = $mgClient->post("domains", array(
'name' => 'outbondxxx.mydomeainxxx.com',
'smtp_password' => 'cagfavapassword'));
谢谢
PS 用 mailgun 开了一张关于这个的支持票。