Support the ongoing development of Laravel.io →
posted 3 years ago
Last updated 1 year ago.
0

Use a mailable then set the from email to be the users email.

Have the mailable receive the $user along with other data needed.

https://laravel.com/docs/7.x/mail#generating-markdown-mailables

/**
 * Build the message.
 *
 * @return $this
 */
public function build()
{
    return $this->from($this->user->email)
                ->markdown($toEmailAddress);
}
0

Sign in to participate in this thread!

Eventy

Your banner here too?

M.Arslan arslanaltaf Joined 19 Jul 2020

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.