定制 mkulas/mail-smtp 二次开发

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

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

mkulas/mail-smtp

Composer 安装命令:

composer require mkulas/mail-smtp

包简介

Mail smtp setting and select config db for user or company .

README 文档

README

Install package

composer require mkulas/mail-smtp

if copy migration smtp settings

php artisan vendor:publish --provider="Mkulas\MailSmtp\MailSmtpProvider" --tag="migrations"

Add crypt

php artisan key:generate

Global method

use Mkulas\MailSmtp\Statics\Email;
// will use Illuminate\Mail\Mailable;

Email::sendJob($data)  // send email job parameters in 1.1
       getEmail() // return email .env or database if exist
       getMailSetting() // retrun mail setting db 
       defaultSetting() // return mail setting env
       getAllMailSetting() // retrun all setting email for admin
       getAuthUserAllSetting() // return all setting auth user
       getSettingUuId($uuid) // retrun setting where uuid
       getActiveMailSetting() // retrun setting in db if active = true
       deleteUserSmtp($uuid) // remove smtp setting

Parameters for send mail job

     $data = [
        'to' => 'test@email.com',
        'from_name' => 'name email',
        'to_name' => 'to name',
        'view' => 'mail', // view in resources 
        'mailData' => ['header' => 'data','message' => 'data'], // data for view ( array,string,compact() )
        'message' => string 'data', or array [data]  
        'subject' => 'name subject',
        'bcc' => ['test1@email.com','test2@email.com'],
        'bcc' => ['test3@email.com','test4@email.com'],
        'attachment' => [
            [
                'mime' => '...',
                'as' => '...',
                'path' => '...',
            ]
        ]
    ];

    Email::sendJob($data);

Parameter for quick email ( I do not recommend )

    use Mkulas\MailSmtp\Statics\Email;

    // will use Swift_Mailer;
    Email::send('test@mail.com','Name email','subject',view('mail',['data' => $data]));

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固