laravel email – How to Change From Name in Laravel Mail?

laravel email uses 100% working free customisable library SwiftMailer to step b ystep code with send emails.

laravel email – Change from name

in this bellow source code to change the from email address and Change From Name dynamically using PHP Laravel.

how to change name in mail – Laravel?


information_data = $information_data;
     * Build the message.
     * @return $this
    public function build()
        $address = config("mail.from.address");
        $name = 'Free Download';
        $this->subject('Mail from')
                    ->from($address, $name);
        return $this;

Don’t miss : Laravel Attachment – Laravel Send Email With Multiple Attachment Example

I hope you get an idea about laravel email.
I would like to have feedback on my
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment