djurovicigoor/postmark-bounced-email-blocker 问题修复 & 功能扩展

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

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

djurovicigoor/postmark-bounced-email-blocker

最新稳定版本:v1.0.9

Composer 安装命令:

composer require djurovicigoor/postmark-bounced-email-blocker

包简介

This package will prevent sending an email to addresses that marked an email as bounced or spam in your postmark email stream.

README 文档

README

Latest Version on Packagist Total Downloads License: MIT

Adds a validator to Laravel for checking whether a given email address isn't blocked in your Postmark stream.

Installation

  1. Run the Composer require command to install the package:

    composer require djurovicigoor/postmark-bounced-email-blocker
  2. If you don't use auto-discovery, open up your app config and add the Service Provider to the $providers array:

    'providers' => [
       ...
    
       Djurovicigoor\PostmarkBouncedEmailBlocker\PostmarkBouncedEmailBlockerServiceProvider::class,
    ],
  3. Publish the configuration file and adapt the configuration as desired:

    php artisan vendor:publish --tag=postmark-bounced-email-blocker
  4. Run the following artisan command to fetch an up-to-date list of blocked emails:

    php artisan postmark-bounced-email:fetch
  5. (optional) In your languages directory, add for each language an extra language line for the validator:

    'bounced_email_in_postmark' => 'It\'s not possible to send email to this address because the recipient has flagged your previous email as spam.',
  6. (optional) It's highly advised to update the blocked emails list regularly. You can either run the command yourself now and then or, if you make use of Laravel's scheduler, include it over there (App\Console\Kernel):

    protected function schedule(Schedule $schedule)
    {
        $schedule->command('postmark-bounced-email:fetch')->daily();
    }

Usage

Use the bounced_email_in_postmark validator to ensure a given field doesn't hold a blocked email address. You'll probably want to add it after the email validator to make sure a valid email is passed through:

'field' => 'email|bounced_email_in_postmark',

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固