Laravel - Mail - Using The From Method
First, let's explore configuring the sender of the email. Or, in other words, who the email is going to be "from". There are two ways to configure the sender. First, you may use the from
method within your mailable class' build
method:
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->from('[email protected]', 'Example')
->view('emails.orders.shipped');
}