Swift_RfcComplianceException: Address in RFC 2822, 3.6.2

问题原因

RFC是一个邮箱检查规则。如果邮箱不符合规则,就会报错。

解决办法

  1. 换邮箱
  2. 修改源码,解除RFC限制
    文件目录是:
    /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php

    private function assertValidAddress($address)
      {
          if (!$this->emailValidator->isValid($address, new RFCValidation())) {
              throw new Swift_RfcComplianceException(
                  'Address in mailbox given ['.$address.'] does not comply with RFC 2822, 3.6.2.'
              );
          }
      }

    把throw那句话注释掉。

你可能感兴趣的:(email,laravel)