Laravel Mail 筆記 Posted on 2016-04-03 | Edited on 2018-09-24 | In 資訊技術 透過 blade email template 寄 email1234567$user = User::find(1); // user informationMail::send('emails.register', compact('user'), function (message) { $message->from([from user email account], [from user nickname]) ->to([receiver email account], [receiver name]) ->subject('This is email title');}); 不透過 blade email template 寄 email123456789$user = User::find(1); // user information$body = 'Something you want to email';Mail::send([], [], function (message) use($body) { $message->from([from user email account], [from user nickname]) ->to([receiver email account], [receiver name]) ->subject('This is email title') ->setBody($body, 'text/html');}); 如果沒有想要以 html 的格式寄出,可以將 ‘text/html’ 拿掉 參考文件 官方 Mailer API 文件