bdereta / sendmail-be
Laravel Package for integrating Sendmail Backend API with Laravel Mailable
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:laravel-package
Requires
- php: ^7.4|^8.0
- ext-json: *
- laravel/framework: ^7.0|^8.0
This package is auto-updated.
Last update: 2024-04-24 11:09:55 UTC
README
GCE Sendmail API integration package for Laravel
Laravel Mailable is the preferred method for sending emails. This package enables your Laravel instance to utilize API-sendmail-be with Laravel Mailable.
Requirements
- Laravel >=8
Installation
composer require bdereta/sendmail-be
- Add the following variables to local .env:
- MAIL_URL=https://mkt-api.gcu.edu/sendmail-be/v1/send
- MAIL_API_KEY= (see Sendmail-BE repo for instructions on how to obtain an API key )
Note: MAIL_URL is optional because the production url is set as the default url in the package 'services' config. However, feel free to define QA or DEV url if you need to test your application in different environments.
Usage
- Create new Mailable within your Laravel project:
php artisan make:mail ContactMail
- A boilerplate App\Mail\ContactMail class will be generated. For more information on how to write Mailable, visit Laravel official documentation