定制 knowproinsighter/sendingmails 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

knowproinsighter/sendingmails

Composer 安装命令:

composer require knowproinsighter/sendingmails

包简介

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:

  1. First of all run the below command it will create App\Mail\SendMailToUser.php file.
php artisan make:mail SendMailToUser
  1. 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...

  1. 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
  1. 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

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固