knowproinsight/sendingmail
Composer 安装命令:
composer require knowproinsight/sendingmail
包简介
You send welcome mail to your user using this package!
README 文档
README
You can download it via run this command on your terminal
composer require knowproinsighter/sendingmails
It is has some dependencies you can follow the below steps to use this package in your project:
- First of all run the below command it will create App\Mail\SendMailToUser.php file.
php artisan make:mail SendMailToUser
- then return the following code inside build method of SendMailToUser.php.
return $this->subject('Congrats, You have successfully registered!')->view('sendingmails::email');
EDIT:- You can write your own message inside subject as well...
- Edit Your .env file
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=...... //Fill your username
MAIL_PASSWORD=......// Fill your password
MAIL_ENCRYPTION=tls
- Edit your default sender details inside Config\mail.php
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
Now, Package is all setup you can send mail by hiting the URL
localhost:8000/sendmail
Feel free to raise your issue if you found any wierd..
Thank you
Enjoy Surffing
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-05