Route::post('/sendmail', 'EmailController@deliverMail');
public function deliverMail() {
$info = ['header' => 'Greetings'];
Mail::send('emails.greet', $info, function($mailer) {
$mailer->from('[email protected]', 'No Reply');
$mailer->to('[email protected]')->subject('Hello There');
});
return redirect('/dashboard');
}
My Laravel application encounters a timeout when dispatching emails via Mailgun. What could be causing this delay?