[英]Mailgun cannot send email to cc
I'm using mailgun to sending email, but I'm not able to send more emails (if I duplicate the code below and add change 'to' variable) or I am not able to send cc. 我正在使用mailgun发送电子邮件,但我无法发送更多电子邮件(如果我复制下面的代码并将更改'添加到'变量)或者我无法发送cc。 If I remove 'cc' from the code, everything works fine, oherwise it throws error pasted below:
如果我从代码中删除'cc',一切正常,但是它会抛出下面粘贴的错误:
$result = $mgClient->sendMessage($domain, array(
'from' => 'Me <me@domain.com>',
'to' => $_POST["customer"]["email"]),
'cc' => 'me@domain.com',
'subject' => 'Confirmation – domain.com',
'html' => $text
));
error: 错误:
Fatal error: Uncaught Mailgun\\Connection\\Exceptions\\MissingRequiredParameters: The parameters passed to the API were invalid.
致命错误:未捕获的Mailgun \\ Connection \\ Exceptions \\ MissingRequiredParameters:传递给API的参数无效。 Check your inputs!
检查你的输入! The domain is unverified and requires DNS configuration.
域未经验证,需要DNS配置。 Log in to your control panel to view required DNS records.
登录控制面板以查看所需的DNS记录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.