Jce

1503 经验值

使用的mandrill

MAIL_DRIVER=mandrill
MANDRILL_SECRET=*************************

MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=*******@email.com

mail.php 也配置了,

'from' => ['address' => '********@outlook.com', 'name' => '*******'],

没有任何的报错

整个过程没有任何报错,也正常跳转指定页面。

Mail::queue($view, $data, function($message) use($user, $subject)
{
            dd($message->to($user->email)->subject($subject));
        });

$message也有数据

Message {#242 ▼
     #swift: Swift_Message {#423 ▼
    -headerSigners: []
    -bodySigners: []
    -savedMessage: []
    #_userFormat: null
    #_userCharset: "utf-8"
    #_userDelSp: null
    -_nestingLevel: 4096
    -_headers: Swift_Mime_SimpleHeaderSet {#421 ▶}
    -_body: """
      <!doctype html>\r\n
      <html lang="en">\r\n
      <head>\r\n
          <meta charset="UTF-8">\r\n
          <title>Document</title>\r\n
      </head>\r\n
      <body>\r\n
      <h1>Confirm Your Email</h1>\r\n
      <a href="http://localhost:8000/verify/rOkPVa0Djlf324ovGLrwIX2h5GJJr5pxdJbkgrsDaAaKc7N9">Click To Confirm</a>\r\n
      </body>\r\n
      </html>
      """
    -_encoder: Swift_Mime_ContentEncoder_QpContentEncoderProxy {#413 ▶}
    -_grammar: Swift_Mime_Grammar {#414}
    -_boundary: null
    -_compositeRanges: array:3 [▶]
    -_compoundLevelFilters: array:1 [▶]
    -_cache: Swift_KeyCache_DiskKeyCache {#250 ▶}
    -_immediateChildren: []
    -_children: []
    -_maxLineLength: 78
    -_alternativePartOrder: array:3 [▶]
    -_id: "b3376898cff05ffb5e4789ebcaa48242@localhost"
    -_cacheKey: "8eb671bb8e13f0bca876ff4d68ed0e1b"
    #_userContentType: "text/html"
    -_nestingLevel: 4096
  }
}

但是邮箱就是收不到邮件。
求大神解决!