puz-dynamic-mail | Change mail configuration for laravel during runtime
kandi X-RAY | puz-dynamic-mail Summary
kandi X-RAY | puz-dynamic-mail Summary
puz-dynamic-mail is a PHP library. puz-dynamic-mail has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
via method allows you to change the driver. Each time you use the via method, it creates a new instance of the mailer. This is so you can still use the default mailer if you'ld like. It takes a the driver name (string) as first argument, but allows you to set the config directly (as with with) in the second argument. with is the one to set the configuration. It takes an array and takes the same array as you would do it in config/services.php.
via method allows you to change the driver. Each time you use the via method, it creates a new instance of the mailer. This is so you can still use the default mailer if you'ld like. It takes a the driver name (string) as first argument, but allows you to set the config directly (as with with) in the second argument. with is the one to set the configuration. It takes an array and takes the same array as you would do it in config/services.php.
Support
Quality
Security
License
Reuse
Support
puz-dynamic-mail has a low active ecosystem.
It has 6 star(s) with 4 fork(s). There are 1 watchers for this library.
It had no major release in the last 12 months.
There are 4 open issues and 3 have been closed. On average issues are closed in 105 days. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of puz-dynamic-mail is 0.1.1
Quality
puz-dynamic-mail has 0 bugs and 2 code smells.
Security
puz-dynamic-mail has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
puz-dynamic-mail code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
puz-dynamic-mail is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
puz-dynamic-mail releases are available to install and integrate.
Installation instructions, examples and code snippets are available.
It has 143 lines of code, 17 functions and 4 files.
It has medium code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA
kandi has reviewed puz-dynamic-mail and discovered the below as its top functions. This is intended to give you an instant insight into puz-dynamic-mail implemented functionality, and help decide if they suit your requirements.
- Register the service provider .
- Register the dynamic mailer .
- Prepare the driver .
- Return an instance with the given configuration .
- Create a new instance .
- Set global address .
- Set driver callback .
- Get the facade accessor .
- Get driver callback .
- Reset driver callback .
Get all kandi verified functions for this library.
puz-dynamic-mail Key Features
No Key Features are available at this moment for puz-dynamic-mail.
puz-dynamic-mail Examples and Code Snippets
[
// ...
// Overwrite Laravel mailer
'Mail' => Puz\DynamicMail\Facades\DynamicMail::class,
// Own mailer
'DynamicMail' => Puz\DynamicMail\Facades\DynamicMail::class,
]
];
'another.domain.tld'])->to('..')->send('..');
// 2
Mail::via('mailgun')->to('..')->send('..');
// 3
Mail::via('mailgun')->with(['domain' => 'hello.tld', 'secret' => 'https://www.youtube.com/watch?v=Iz-8CSa9xj8'])->to('..')-
Community Discussions
No Community Discussions are available at this moment for puz-dynamic-mail.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install puz-dynamic-mail
composer require puz/dynamic-mail
Add \Puz\DynamicMail\DynamicMailServiceProvider::class, to your list of active providers.
Add the facade to your list of aliases. You can either overwrite Laravels own facade (no worries, this package only extend the functionality) or you can add a new one specifically for dynamic mail configuration:
You're almost ready!
Add \Puz\DynamicMail\DynamicMailServiceProvider::class, to your list of active providers.
Add the facade to your list of aliases. You can either overwrite Laravels own facade (no worries, this package only extend the functionality) or you can add a new one specifically for dynamic mail configuration:
You're almost ready!
Support
I did set it to only allow some of the integrated mail services you can use with Laravel. These are as follow:.
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page