0
我剛剛開發了一個帶有郵件系統的laravel web應用程序。 我有錯誤,如Lravel郵件不發送 - 無法建立與主機smtp.gmail.com的連接[連接超時#110]
Connection could not be established with host smtp.gmail.com [Connection timed out #110]
控制器
Mail::send('timesheet/emailtemplate',array('data'=>$query),function($message)
{
$message->to('[email protected]')->cc('[email protected]')->subject('Work Report on - ');
});
電子郵件模板文件:emailtemplate.blade.php
<h2>hai</h2>
mail.php(配置)
'driver' => 'smtp',
'host' => 'smtp.gmail.com',
'port' => 587,
'from' => array('address' => null, 'name' => null),
'encryption' => 'ssl',
'username' => '[email protected]',
'password' => 'mypassword',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
Thnks很多豬頭... – Jishad 2015-02-06 04:57:38
如何通過mail100.us4.mandrillapp.com **在郵件中刪除** – Jishad 2015-02-06 04:58:35
app/config/mail.php ''from'=> array('address'=>'[email protected]', 'name'=>'webAdmin'),' 改變這一行:) – Alupotha 2015-02-06 05:30:44