tahsingokalp/laravel-ews-driver 问题修复 & 功能扩展

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

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

tahsingokalp/laravel-ews-driver

最新稳定版本:v1.0.4

Composer 安装命令:

composer require tahsingokalp/laravel-ews-driver

包简介

Adds Exchange Web Services Mail Support to Laravel.

README 文档

README

A Mail Driver with support for Exchange Web Services, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods. This package requires a access to a EWS host.

This library uses the php-ews library to connect to the exchange web services host. Therefore requires the following dependencies:

  • Composer
  • PHP 8.1 or greater
  • cURL with NTLM support (7.30.0+ recommended)
  • Exchange 2007 or later

For more information, visit that repo

Install (Laravel)

Add the package to your composer.json and run composer update.

"require": {
    "tahsingokalp/laravel-ews-driver": "~1.0"
},

or install with composer

$ composer require tahsingokalp/laravel-ews-driver

Add the Exchange service provider in config/app.php: (Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.)

'providers' => [
    TahsinGokalp\LaravelEwsDriver\EwsServiceProvider::class
];

Add mail config to config file.

config/mail.php

<?php
return [
    'mailers' => [
        .
        .
        .
        'exchange' => [
            'transport' => 'exchange',
            'host' => env('MAIL_HOST'),
            'username' => env('MAIL_USERNAME'),
            'password' => env('MAIL_PASSWORD'),
            'version' => env('MAIL_VERSION'),
            'messageDispositionType' => env('MAIL_MESSAGE_DISPOSITION_TYPE'),
        ],
        .
        .
        .
    ],

Configure

.env

MAIL_DRIVER=exchange
MAIL_HOST=webmail.example.com
MAIL_USERNAME=examplemail
MAIL_PASSWORD=examplepassword
MAIL_VERSION=Exchange2010
MAIL_MESSAGE_DISPOSITION_TYPE=SaveOnly|SendAndSaveCopy|SendOnly

For more information on the Message Disposition Type, view more here

Acknowledgments

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2022-05-19