hsntngr
8 months ago
193
3
Laravel

Laravel How to Send Email With Sender Name ?

Posted 8 months ago by hsntngr

ı'm trying to send email with sender name but I couldn't figure out how do I achive this.

I set sender name in mail.from.name config but still it uses username of email address

When I send an email from [email protected], sender name seems as noreply. But I want to use aoo name instead..

public function build() {
      return $this
            ->to($this->user)
            ->from("[email protected]")
            ->subject($subject)
            ->markdown('mail.user.welcome');
}

Please sign in or create an account to participate in this conversation.