Search code examples
phplaravellaravel-5laravel-notification

Laravel - Notification Customizing


So I'm sending mails with using Laravel notification. It can be very easy question but I couldnt find any answer. When I check the mails in my e-mail, the header part or i dont know how to describe it has always tag : "example". What I should add to change that tag "Example"??

public function toMail($notifiable)
    {
        return (new MailMessage)
                    ->greeting('New Password')
                    ->subject('New Password - zzz')
                    ->line('Keep your password safe, and have fun!')
                    ->line('Your new password is ' . $this->password)
                    ->line('Thank you for using our application!');
    }

it looks like :

Example "gotl.and.gotl@gmail.com"


Solution

  • You need to update your settings. These are coming from config/mail.php. You will likely need to add or update them in your .env file.