Mailgun Email Timeout Issue in Laravel Integration

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?

maybe its a config issue; i had this timeout when my mailgun api keys were wrong and dns resoltion took longer than expected. check your env settings and network speed, might just be slow repsonse times