LaravelElasticEmail
A Laravel wrapper for Elastic Email. Can send emails with multiple attachments
Install / Use
/learn @rdanusha/LaravelElasticEmailREADME
Laravel Elastic Email
A Laravel wrapper for Elastic Email
Can send emails with multiple attachments
IMPORTANT
Laravel version
5.5 or older - Use Version 1.1.1
5.6 and forwards - Use version 1.2
Installation
- Step 1
Install package via composer
composer require rdanusha/laravel-elastic-email
- Step 2
Add this code to .env file
ELASTIC_ACCOUNT=<Add your account>
ELASTIC_KEY=<Add your key>
- Step 3
Update MAIL_DRIVER value as 'elastic_email' in your .env file
MAIL_DRIVER=elastic_email
- Step 4
Add this code to your config/services.php file
'elastic_email' => [
'key' => env('ELASTIC_KEY'),
'account' => env('ELASTIC_ACCOUNT')
]
- Step 5
Open config/app.php file and go to providers array, Then comment out Laravel's default MailServiceProvider and add the following
'providers' => [
/*
* Laravel Framework Service Providers...
*/
...
// Illuminate\Mail\MailServiceProvider::class,
Rdanusha\LaravelElasticEmail\LaravelElasticEmailServiceProvider::class,
...
],
Usage
This package works exactly like Laravel's native mailers. Refer to Laravel's Mail documentation.
https://laravel.com/docs/5.5/mail
Code Example
Mail::to($request->user())->send(new OrderShipped($order));
Related Skills
gh-issues
352.9kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
oracle
352.9kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
taskflow-inbox-triage
352.9kname: taskflow-inbox-triage description: Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some w
taskflow
352.9kname: taskflow description: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layer
