registration welcome email laravel

Solutions on MaxInterview for registration welcome email laravel by the best coders in the world

showing results for - "registration welcome email laravel"
Micaela
22 Oct 2016
1use Illuminate\Support\Facades\Mail;
2
3protected function create(array $data)
4{
5    $user = User::create([
6        'name' => $data['name'],
7        'email' => $data['email'],
8        'password' => Hash::make($data['password']),
9    ]);
10
11    // email data
12    $email_data = array(
13        'name' => $data['name'],
14        'email' => $data['email'],
15    );
16
17    // send email with the template
18    Mail::send('welcome_email', $email_data, function ($message) use ($email_data) {
19        $message->to($email_data['email'], $email_data['name'])
20            ->subject('Welcome to MyNotePaper')
21            ->from('info@mynotepaper.com', 'MyNotePaper');
22    });
23
24    return $user;
25}
Roberta
30 Jul 2016
1MAIL_DRIVER=smtp
2MAIL_HOST=smtp.mailtrap.io
3MAIL_PORT=2525
4MAIL_USERNAME=48664********
5MAIL_PASSWORD=6cfa6********
Kloe
25 Jan 2019
1Hello {{ $name }},<br><br>
2
3Welcome to MyNotePaper.<br><br>
4
5Thank You,<br>
6MyNotepaper