2017 © Pedro Peláez
 

library aliyunmailer

laravel framework mailer plugin which based on AliyunMail

image

jacksunny/aliyunmailer

laravel framework mailer plugin which based on AliyunMail

  • Wednesday, June 7, 2017
  • by jacksunny2020
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

aliyunmailer

laravel framework mailer plugin which based on AliyunMail, (*1)

pre-condition

completed setting from user domain dns manage(like MX record),and,completed creating from user account(like service@xx.com) under Aliyun Controller Panel, (*2)

How to install and configurate package

  1. install the laravel package composer require "jacksunny/aliyunmailer":"dev-master", (*3)

    please check exist line "minimum-stability": "dev" in composer.json if failed, (*4)

  2. set default mailer to aliyunmail in file config/mail.php, (*5)

    'driver' => env('MAIL_DRIVER', 'aliyunmail'), 'aliyunmail' => [ 'region' => 'cn-hangzhou', 'key' => 'APPKEYAPPKEY', 'secret' => 'APPSECRETAPPSECRETAPPSECRET', ],, (*6)

  3. set default mailer to aliyunmail in file .env, (*7)

    MAIL_DRIVER=aliyunmail, (*8)

  4. append new service provider file line in the section providers of file app.config after appended,it should looks like 'providers' => [ Illuminate\Auth\AuthServiceProvider::class, ...... Jacksunny\AliyunMailer\ExtendedMailServiceProvider::class, ],, (*9)

  5. add route to test if it works,run http://localhost/sendalimail after route defined below, (*10)

    Route::get("/sendalimail", function() { $result = Mail::raw('这里填写邮件的内容', function ($message) { // 发件人(你自己的邮箱和名称) $message->from('service@xxx.com', 'laravel'); // 收件人的邮箱地址 $message->to('dest@yyy.com'); // 邮件主题 $message->subject('test at 20170608'); }); return $result; });, (*11)

  6. please notify me if you got any problem or error on it,thank you!, (*12)

The Versions

07/06 2017

dev-master

9999999-dev

laravel framework mailer plugin which based on AliyunMail

  Sources   Download

The Requires

 

by jacksunny

07/06 2017

v0.7

0.7.0.0

laravel framework mailer plugin which based on AliyunMail

  Sources   Download

The Requires

 

by jacksunny