Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MAIL_DRIVER=smtp
- MAIL_HOST=smtp.gmail.com
- MAIL_PORT=587
- MAIL_USERNAME=********@gmail.com //email address
- MAIL_PASSWORD="*******" //password for that email
- MAIL_ENCRYPTION=tls
- Route::get('/email', function(){
- $data = array(
- 'name' => "Rongin Library",
- );
- Mail::send('mailview',$data,function($message){
- $message->from('ronginlibrary@gmail.com','Rongin Library');
- $message->to('shafi.cse.buet@gmail.com')->subject('Confirmation mail.');
- });
- return "A email has been sent to you. Check inbox. Also check spambox if not in inbox.";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement