Comments (2)
In the PostmarkServiceProvider.php I found that the message_stream_id is always being fetched from the mailer named 'postmark', as you can see below.
public function boot(): void
{
$this->loadViewsFrom(__DIR__.'/../resources/views', 'postmark');
$this->app['mail.manager']->extend('postmark', function () {
$config = $this->app->make('config');
return new PostmarkTransport(
$this->app->make(Factory::class),
$config->get('mail.mailers.postmark.message_stream_id'),
$config->get('services.postmark.token'),
);
});
}
As a work around, I solved it be creating a new Transport in my AppServiceProvider, but probably it should be changed in the repo. Here is my change:
Mail::extend('postmark-broadcast', function ($config) {
$globalService = $this->app->make('config');
return new PostmarkTransport(
$this->app->make(Factory::class),
$config['message_stream_id'],
$globalService->get('services.postmark.token'),
);
});
Cheers!
from laravel-postmark.
Hey @nacho-villanueva! Great catch, thank you! This is resolved in v3.0.4 with 50147a4
from laravel-postmark.
Related Issues (20)
- [3.x] Replace Guzzle client with Laravel HTTP Client HOT 1
- Default branch HOT 2
- Stale branches HOT 2
- [3.x] Remove X-PM-Message-Id
- Testing postmark TLS configuration changes HOT 3
- Batch Email Sending HOT 7
- Send templates based on Mailable class HOT 3
- Inline attachments not working HOT 2
- [3.x] Preparing for Symfony 6.0 & Laravel 9.0 HOT 5
- [3.x] Upgrade Guide
- Too much data being rendered in `template.blade.php` view. HOT 2
- Typed property error on 'id' when using alias instead of identifier HOT 1
- [3.x] No ability anymore to pass guzzle options in 3.x HOT 2
- laravel 9 support HOT 6
- $config['message_stream_id'] not defined? HOT 3
- Message stream Id on postmark Factory HOT 1
- message_stream_id stopped working after last commit HOT 1
- Ability to use different servers HOT 2
- Change master branch to main HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-postmark.