简体   繁体   English

邮件枪通过HTTP发送返回服务器响应:550 5.1.0收件人被拒绝

[英]Mail Gun Sending via HTTP returns Server response: 550 5.1.0 Recipient rejected

$ch = curl_init();

        curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
        curl_setopt($ch, CURLOPT_USERPWD, 'api:key-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
        curl_setopt($ch, CURLOPT_URL, 'https://api.mailgun.net/v2/domain.com/messages');
        curl_setopt($ch, CURLOPT_POSTFIELDS, array('from' => 'Excited User <administrator@domain.com>',
                                                 'to' => 'tester@otherdomain.com',
                                                 'subject' => 'test',
                                                 'text' => 'message'));

        $result = curl_exec($ch);

Above is a snippet of my send function. 上面是我的发送功能的代码段。 if i user gmail, or yahoo or aol on the otherdomain, the message is sent. 如果我在otherdomain上使用gmail,yahoo或aol,则会发送该消息。 but if I use a custom otherdomain, it returns a Server Response: 550 但是,如果我使用自定义otherdomain,它将返回服务器响应:550

What did I miss? 我错过了什么?

I found out that when you use mailgun's incomming smtp, the previois emails will not be available. 我发现,当您使用mailgun的传入smtp时,previois电子邮件将不可用。 you have to input them again on their mailbox. 您必须在他们的邮箱上再次输入它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 警告:mail()[function.mail]:SMTP服务器响应:550无效的收件人: - Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient: SMTP 服务器响应:550 简单 email 功能的收件人无效 - SMTP server response: 550 Invalid recipient to a simple email feature 将邮件发送到本地邮件服务器 - “SENT:550地址无效。” - Sending mail to local mail server - “SENT: 550 The address is not valid.” 警告:mail()[function.mail]:SMTP服务器响应:550 - Warning: mail() [function.mail]: SMTP server response: 550 邮寄交换服务器SMTP服务器响应:550验证失败 - Mail an exchange server SMTP server response: 550-Verification failed SMTP服务器响应:550 Apache php邮件服务器 - SMTP server response: 550 apache php mail server mail():SMTP服务器响应:550 hmailserver上的地址无效错误 - mail(): SMTP server response: 550 The address is not valid error on hmailserver Pear Mail-收件人地址被拒绝-错误 - Pear Mail - Recipient address rejected - Error 如何修复mail():SMTP服务器响应:550 5.5.0 PHP中无效的EHLO / HELO域错误 - how to fix mail(): SMTP server response: 550 5.5.0 Invalid EHLO/HELO domain error in php SMTP服务器响应:550 5.7.1无法中继 - 将电子邮件发送到非公司地址 - SMTP server response: 550 5.7.1 Unable to relay in - Sending email to a non-company address
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM