定制 mailcct/mailablecct 二次开发

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

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

mailcct/mailablecct

Composer 安装命令:

composer create-project mailcct/mailablecct

包简介

custom mail

README 文档

README

Mailable packages Run bellow command to install

Installation

composer require mailcct/mailablecct 

Migration

php artisan migrate

if you send mail in usig this packages added this line in your controller

use Mailcct\Mailablecct\Mail\CommonMail;

use Mail;

after add this line you can send mail according to pass mailable type and get template data in your db

import your mailable model

use Mailcct\Mailablecct\Models\MailTemplate;

get data in your db template according to your mailable type using this line

// pass mailable type accoding to send mail template 

EX. $mail_type = 'order_view';

    $tomail = 'testingtest@yopmail.com';
    $mail_template = MailTemplate::select('id','html_template','subject')->where('mailable_type',$mail_type)->first();

    if(!empty($mail_template)){
        $data['html_template'] = $mail_template['html_template'];
        $data['subject'] = $mail_template['subject'];

        /* send mail  */
        Mail::to($tomail)->send(new CommonMail($data));

        }

Configuration

Then run bellow command to publish config and resource files

If you want to change these options, you'll have to publish the views file.

php artisan vendor:publish --provider="Mailcct\Mailablecct\MailEditServiceProvider" --tag="css"

php artisan vendor:publish --provider="Mailcct\Mailablecct\MailEditServiceProvider" --tag="views"

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固