mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 03:40:09 -05:00 
			
		
		
		
	Merge pull request #5521 from turbo124/v5-develop
Fixes for post mark mailer
This commit is contained in:
		
						commit
						f1eafb699e
					
				@ -36,18 +36,21 @@ class MailServiceProvider extends MailProvider
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        $this->app['mail.manager']->extend('postmark', function () {
 | 
			
		||||
             return new HttpClient(array_merge($config, [
 | 
			
		||||
                'base_uri' => empty($config['base_uri'])
 | 
			
		||||
                    ? 'https://api.postmarkapp.com'
 | 
			
		||||
                    : $config['base_uri']
 | 
			
		||||
            ]));
 | 
			
		||||
            return new PostmarkTransport(
 | 
			
		||||
                $this->guzzle(config('postmark.guzzle', [])),
 | 
			
		||||
                config('postmark.secret')
 | 
			
		||||
            );
 | 
			
		||||
        });
 | 
			
		||||
        
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    protected function guzzle(array $config): HttpClient
 | 
			
		||||
    {
 | 
			
		||||
        return new HttpClient($config);
 | 
			
		||||
        return new HttpClient(array_merge($config, [
 | 
			
		||||
                'base_uri' => empty($config['base_uri'])
 | 
			
		||||
                    ? 'https://api.postmarkapp.com'
 | 
			
		||||
                    : $config['base_uri']
 | 
			
		||||
            ]));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function provides()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user