govelid/multi-smtp-mailer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

govelid/multi-smtp-mailer

Composer 安装命令:

composer require govelid/multi-smtp-mailer

包简介

Multi SMTP Mailer - Use for set multiple smtp mailer dynamically for your laravel web

README 文档

README

composer require govelid/multi-smtp-mailer

This package allow you set multiple smtp mailer dynamically from database, it is more secure than you have to set your credentials mail at your config or .env file

Installation

  • 1. You need setup your database
  • 2. Run composer require govelid/multi-smtp-mailer
  • 3. Modify the composer.json file in your Laravel app by adding the following lines to the autoload section: "psr-4": { "App\\": "app/", "Govelid\\MultiSmtpMailer\\": "vendor/govelid/multi-smtp-mailer/src/" }
  • 4. Run composer dump-autoload
  • 5. Publish the migration file :
    php artisan vendor:publish --provider="Govelid\MultiSmtpMailer\MailConfigServiceProvider"
  • 6. Run php artisan migrate
  • 7. Create new data mailer at mail_settings table , for first mail default mailer is 'smtp' , the next mailer you can give custom name
  • 8. Tes your mail

How to use mail

  • Default mailer : Mail::to($recipient)->send(new Mail)
  • Custom mailer : Mail::mailer('custommailer)->to($recipient)->send(new Mail)

How to use MailSetting Model

  • Use as is Laravel Eloquent Model , example display all data form table mail_settings: MailSetting::all();
  • Dont forget to add use Govelid\MultiSmtpMailer\MailSetting;

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固