Service provider for laravel which provide Mirfalah Swift_Transport implementation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lim Eng Shun aa799b59e6 Update 'composer.json' hace 4 años
src init hace 4 años
.gitignore init hace 4 años
README.md init hace 4 años
composer.json Update 'composer.json' hace 4 años

README.md

mirfalah/laravel-swift

Service provider for laravel which provide Mirfalah Swift_Transport implementation


Installation

Add following repository records into composer.json

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://git.mirfalah.my/mirfalah-tech/sendmail-swift-transport.git"
    },
    {
      "type": "vcs",
      "url": "https://git.mirfalah.my/mirfalah-tech/laravel-swift.git"
    }
  ]
}

Then execute

composer require mirfalah/laravel-swift ^1.0

Usage

# file: config/mail.php
return [
    ...
    'mirfalah' => [
        'api_key'=> env('MIRFALAH_SENDMAIL_APIKEY'),
        'secret'=> env('MIRFALAH_SENDMAIL_SECRET'),
        'endpoint' => env(
            'MIRFALAH_SENDMAIL_ENDPOINT',
            'https://pahangmail.mirfalah.my/mirfalah-sendmail/index.php'
        )
    ]
    ...
];
# file: .env
MAIL_DRIVER=mirfalah
MIRFALAH_SENDMAIL_APIKEY=""
MIRFALAH_SENDMAIL_SECRET=""