i changed my the port to 25 and the encryption to null it worked but for only one email and the other emails not working. it sends only to a specific email even i am making it dynamic:
// mail $user = User::find($request->user_id);
$email = $user->email;
Mail::send('site.pages.messageDraft', ['order' => $order, 'user' => $user],
function($message) use ($email) {
$message->from('[email protected]', 'BuyOnline');
$message->to($email)->subject('New Order');
});
return ['status' => 'success'];
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community