mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Register Gmail Mail Transport
This commit is contained in:
parent
b81afb9cb9
commit
2b48477785
@ -9,6 +9,7 @@ class GmailTransportManager extends TransportManager
|
||||
{
|
||||
protected function createGmailDriver()
|
||||
{
|
||||
info('ping pong');
|
||||
$token = $this->app['config']->get('services.gmail.token', []);
|
||||
$mail = new Mail;
|
||||
|
||||
|
@ -7,8 +7,15 @@ use Illuminate\Mail\MailServiceProvider as MailProvider;
|
||||
|
||||
class MailServiceProvider extends MailProvider
|
||||
{
|
||||
|
||||
public function register()
|
||||
{
|
||||
$this->registerSwiftTransport();
|
||||
}
|
||||
|
||||
protected function registerSwiftTransport()
|
||||
{
|
||||
|
||||
$this->app->singleton('swift.transport', function ($app) {
|
||||
return new GmailTransportManager($app);
|
||||
});
|
||||
|
@ -70,6 +70,10 @@ return [
|
||||
'array' => [
|
||||
'transport' => 'array',
|
||||
],
|
||||
'gmail' => [
|
||||
'transport' => 'gmail',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user