[Help] Queued Mail Attempts

  • | 955 points

    There is a queued task in the jobs table. I ran the following command php artisan queue:work, but the mail is not being sent to my mailtrap. The number of attempts of a task in the jobs table keeps growing.

    public function sendContactForm(Request $request) {
            $subject = $request->input('subject');
            $message = $request->input('message');
            $name = $request->input('name');
            $email = $request->input('email');
            Mail::queue('emails.contactus', ['subject' => $subject, 'message' => $message, 'name' => $name, 'email' => $email], function ($m) use ($email, $name, $subject) {
                $m->from($email, $name);
            Alert::success(trans('contact.alert_content'), trans('contact.alert_title'))->persistent(trans('global.close'));
            return redirect()->route('contact');

    Is a problem with my code? Or is it a problem with the configuration in Laragon. I am using Laragon 2.1.0. Thanks.

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.