<?php

namespace App\Mail;

use App\User;
use App\Contact;
use App\Reminder;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;

class UserReminded extends Mailable
{
    use Queueable, SerializesModels;

    protected $reminder;
    protected $user;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct(Reminder $reminder, User $user)
    {
        $this->reminder = $reminder;
        $this->user = $user;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        $contact = Contact::findOrFail($this->reminder->contact_id);

        \App::setLocale($this->user->locale);

        return $this->text('emails.reminder.reminder')
                    ->subject(trans('mail.subject_line', ['contact' => $contact->getCompleteName($this->user()->name_order)]))
                    ->with([
                        'contact' => $contact,
                        'reminder' => $this->reminder,
                        'user' => $this->user,
                    ]);
    }
}

<?php

namespace App\Mail;

use App\User;
use App\Contact;
use App\Reminder;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;

class UserReminded extends Mailable
{
    use Queueable, SerializesModels;

    protected $reminder;
    protected $user;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct(Reminder $reminder, User $user)
    {
        $this->reminder = $reminder;
        $this->user = $user;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        $contact = Contact::findOrFail($this->reminder->contact_id);

        \App::setLocale($this->user->locale);

        return $this->text('emails.reminder.reminder')
                    ->subject(trans('mail.subject_line', ['contact' => $contact->getCompleteName($this->user->name_order)]))
                    ->with([
                        'contact' => $contact,
                        'reminder' => $this->reminder,
                        'user' => $this->user,
                    ]);
    }
}

Fix email not being sent
Fix email not being sent
