lalitwebhopers/wh-mailer

WH Mailer a product of Webhopers Infotech.

v1.0.0 2023-02-21 11:27 UTC

This package is auto-updated.

Last update: 2024-04-21 14:41:58 UTC


README

Installation

You can install the package via composer:

composer require lalitwebhopers/wh-mailer

Usage

Add the following code to file "app/config/services.php"

'whmailer' => [
  'url' => env('WHMAILER_URL'),
  'key' => env('WHMAILER_API_KEY')
],

Update the following code to file "app/config/mail.php"

'default' => env('MAIL_MAILER', 'whmailer'),

Add the following code to file "app/config/mail.php"

add the following code inside 'mailers' array.

'whmailer' => [
  'transport' => 'whmailer',
],

Update the file ".env"

MAIL_MAILER='whmailer'
WHMAILER_URL='http://netmail.whdev.in:5000/api/mailer/send-text'
WHMAILER_API_KEY='Your API Key provided by WHMailer'

Update the file "app/config/app.php"

inside 'providers' array comment the default 'MailServiceProvider' & add 'WHMailerServiceProvider'.

'providers' => [
 ...
 // Illuminate\Mail\MailServiceProvider::class,
 Lalitwebhopers\WhMailer\WhMailerServiceProvider::class,
 ...
]

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email lalit.webhopers@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.