Tôi có một hàm gửi gmail đến khách hàng, nhưng lại gửi cho chính tôi
nhưng lại gửi cho chính tôi
public function postSubmit(Request $request) { $order = new Order; $order->name = $request->name; $order->email = $request->email; $order->phone = $request->phone; $order->address = $request->address; $order->content = $request->content; $order->amount = $request->amount; $order->save(); $data = [ 'name' => $request->name, 'email' => $request->email, 'phone' => $request->phone, 'address' => $request->address, 'content' => $request->content, 'amount' => $request->amount, ]; Mail::send('admin.order.send', $data, function ($email) { $email->from('my_email@gmail.com', 'admin'); $email->to()->subject('Submit'); }); return redirect()->back()->with('message', 'thank'); }
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Mtftsf
via IFTTT
Aucun commentaire:
Enregistrer un commentaire