Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return [
- 'driver' => env('MAIL_DRIVER', 'smtp'),
- 'host' => env('MAIL_HOST', 'gator.hostgator.com'),
- 'port' => env('MAIL_PORT', 587),
- 'from' => [
- 'address' => 'myemail@solve.life',
- 'name' => 'Hero Directory',
- ],
- 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
- 'username' => env('myemail@solve.life'),
- 'password' => env('mypassword'),
- 'sendmail' => '/usr/sbin/sendmail -bs',
- ];
- MAIL_DRIVER=smtp
- MAIL_HOST=gator.hostgator.com
- MAIL_PORT=465
- MAIL_USERNAME=myemail@solve.life
- MAIL_PASSWORD=mypassword
- MAIL_ENCRYPTION=ssl
- $data = ['email' => $email, 'full_name' => $full_name, 'confirmation_code' => $confirmation_code];
- $mail_verification = Mail::send('email.verify',$data, function($message) use ($data){
- $message->to($data['email'], $data['full_name']);
- $message->subject('Verify your email address');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement