<legend id='LEdKv'><style id='LEdKv'><dir id='LEdKv'><q id='LEdKv'></q></dir></style></legend>

  • <i id='LEdKv'><tr id='LEdKv'><dt id='LEdKv'><q id='LEdKv'><span id='LEdKv'><b id='LEdKv'><form id='LEdKv'><ins id='LEdKv'></ins><ul id='LEdKv'></ul><sub id='LEdKv'></sub></form><legend id='LEdKv'></legend><bdo id='LEdKv'><pre id='LEdKv'><center id='LEdKv'></center></pre></bdo></b><th id='LEdKv'></th></span></q></dt></tr></i><div id='LEdKv'><tfoot id='LEdKv'></tfoot><dl id='LEdKv'><fieldset id='LEdKv'></fieldset></dl></div>

    <small id='LEdKv'></small><noframes id='LEdKv'>

        • <bdo id='LEdKv'></bdo><ul id='LEdKv'></ul>
        <tfoot id='LEdKv'></tfoot>

      1. 给定 [] 邮箱中的地址不符合 RFC 2822, 3.6.2.当电子邮件在变量中时

        时间:2023-10-31

        <i id='V2A4u'><tr id='V2A4u'><dt id='V2A4u'><q id='V2A4u'><span id='V2A4u'><b id='V2A4u'><form id='V2A4u'><ins id='V2A4u'></ins><ul id='V2A4u'></ul><sub id='V2A4u'></sub></form><legend id='V2A4u'></legend><bdo id='V2A4u'><pre id='V2A4u'><center id='V2A4u'></center></pre></bdo></b><th id='V2A4u'></th></span></q></dt></tr></i><div id='V2A4u'><tfoot id='V2A4u'></tfoot><dl id='V2A4u'><fieldset id='V2A4u'></fieldset></dl></div>

          <tfoot id='V2A4u'></tfoot>
              <tbody id='V2A4u'></tbody>

            • <small id='V2A4u'></small><noframes id='V2A4u'>

              <legend id='V2A4u'><style id='V2A4u'><dir id='V2A4u'><q id='V2A4u'></q></dir></style></legend>
              • <bdo id='V2A4u'></bdo><ul id='V2A4u'></ul>
                  本文介绍了给定 [] 邮箱中的地址不符合 RFC 2822, 3.6.2.当电子邮件在变量中时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个正确的电子邮件地址.我已经回显了它,但是当我发送它时,我收到以下错误:

                  I have a correct email address. I have echoed it, but when I send it, I get the following error:

                   Address in mailbox given [] does not comply with RFC 2822, 3.6.2. 
                  

                  为什么?我使用 laravel (swift mailer) 发送电子邮件:

                  Why? I use laravel (swift mailer) to send email:

                  $email = email@address.com
                  

                  然后当我发送它时,就会抛出错误.

                  and then when I send it, the error is thrown.

                  但如果我直接使用字符串,它会发送它.

                  But if I directly use the string, it sends it.

                  这里是块:

                   Mail::send('emails.activation', $data, function($message){
                              $message->to($email)->subject($subject);
                          });
                                  ->with('title', "Registered Successfully.");
                  

                  推荐答案

                  你的email变量因为作用域是空的,你应该设置一个use子句比如:

                  Your email variable is empty because of the scope, you should set a use clause such as:

                  Mail::send('emails.activation', $data, function($message) use ($email, $subject) {
                      $message->to($email)->subject($subject);
                  });
                  

                  这篇关于给定 [] 邮箱中的地址不符合 RFC 2822, 3.6.2.当电子邮件在变量中时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Laravel 4.2:将 PHP 文件(库)包含到控制器中 下一篇:Laravel Mail 发送电子邮件但返回 false

                  相关文章

                  1. <tfoot id='H1Xyr'></tfoot>

                      <legend id='H1Xyr'><style id='H1Xyr'><dir id='H1Xyr'><q id='H1Xyr'></q></dir></style></legend>
                    1. <small id='H1Xyr'></small><noframes id='H1Xyr'>

                      • <bdo id='H1Xyr'></bdo><ul id='H1Xyr'></ul>
                      <i id='H1Xyr'><tr id='H1Xyr'><dt id='H1Xyr'><q id='H1Xyr'><span id='H1Xyr'><b id='H1Xyr'><form id='H1Xyr'><ins id='H1Xyr'></ins><ul id='H1Xyr'></ul><sub id='H1Xyr'></sub></form><legend id='H1Xyr'></legend><bdo id='H1Xyr'><pre id='H1Xyr'><center id='H1Xyr'></center></pre></bdo></b><th id='H1Xyr'></th></span></q></dt></tr></i><div id='H1Xyr'><tfoot id='H1Xyr'></tfoot><dl id='H1Xyr'><fieldset id='H1Xyr'></fieldset></dl></div>