Prakash Poudel
Prakash Poudel

Reputation: 443

Changing the default “From” field of email in laravel 5

When I send an email with my app from laravel, the receiver gets email from:

Example <[email protected]>

How can I customize this?

I was able to customize the default Subject field as the answer posted in https://stackoverflow.com/a/52415107/5016573

I am using mailgun as mail server.

Upvotes: 1

Views: 573

Answers (1)

user2094178
user2094178

Reputation: 9464

Your .env file contains two attributes related to what you are asking:

[email protected]
MAIL_FROM_NAME="John Doe"

These attributes are then used at config/mail.php.

Upvotes: 2

Related Questions